Update index.ts
This commit is contained in:
parent
b15a93d120
commit
68eae50a63
@ -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
|
//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 });
|
const user = await User.findOneOrFail({ where: { id: req.user_id }, select: PrivateUserProjection });
|
||||||
|
// TODO: send update member list event in gateway
|
||||||
await emitEvent({
|
await emitEvent({
|
||||||
event: "USER_UPDATE",
|
event: "USER_UPDATE",
|
||||||
user_id: req.user_id,
|
user_id: req.user_id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user