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:
parent
5c13d6f1ef
commit
ad5ec039af
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user