1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-10 20:52:42 +01:00

Update index.ts

This commit is contained in:
Flam3rboy 2021-09-13 19:12:19 +02:00 committed by GitHub
parent b15a93d120
commit 68eae50a63

View File

@ -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,