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 | ad5ec039af68235a1a58438cc135d66afae3e5d9 (patch) | |
tree | 53aa04806a8855af25f8ac1b7384830b5e060a4a /api/src/routes/users/@me/index.ts | |
parent | Emit USER_UPDATE, fix #214 (diff) | |
download | server-ad5ec039af68235a1a58438cc135d66afae3e5d9.tar.xz |
Update index.ts
Diffstat (limited to 'api/src/routes/users/@me/index.ts')
-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, |