1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 05:02:37 +01:00

Update index.ts

This commit is contained in:
Flam3rboy 2021-09-13 19:12:19 +02:00 committed by GitHub
parent 5c13d6f1ef
commit ad5ec039af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,