mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 18:32:29 +01:00
Whoops
This commit is contained in:
parent
8650120ebc
commit
b9bd5c5ac4
@ -74,7 +74,7 @@ router.post("/reset", route({}), async (req: Request, res: Response) => {
|
||||
});
|
||||
|
||||
router.patch("/", route({}), async (req: Request, res: Response) => {
|
||||
delete req.body.icon;
|
||||
delete req.body.avatar;
|
||||
let app = OrmUtils.mergeDeep(await User.findOne({where: {id: req.params.id}}), req.body);
|
||||
await app.save();
|
||||
res.json(app).status(200);
|
||||
|
Loading…
Reference in New Issue
Block a user