diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-13 19:12:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-13 19:12:19 +0200 |
commit | 68eae50a63df0a84d75c05abce5142a33f4c5bd3 (patch) | |
tree | b2ba1159baebf0c0abf59c46f2cd2d726a5e6b77 /api | |
parent | Emit USER_UPDATE, fix #214 (diff) | |
download | server-68eae50a63df0a84d75c05abce5142a33f4c5bd3.tar.xz |
Update index.ts
Diffstat (limited to 'api')
-rw-r--r-- | api/src/routes/users/@me/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/users/@me/index.ts b/api/src/routes/users/@me/index.ts index a8c0edc4..c0002d79 100644 --- a/api/src/routes/users/@me/index.ts +++ b/api/src/routes/users/@me/index.ts @@ -37,7 +37,7 @@ router.patch("/", route({ body: "UserModifySchema" }), async (req: Request, res: //Need to reload user from db due to https://github.com/typeorm/typeorm/issues/3490 const user = await User.findOneOrFail({ where: { id: req.user_id }, select: PrivateUserProjection }); - + // TODO: send update member list event in gateway await emitEvent({ event: "USER_UPDATE", user_id: req.user_id, |