1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-22 18:32:29 +01:00
This commit is contained in:
ChrisChrome 2022-08-10 04:50:29 -06:00 committed by Madeline
parent 8650120ebc
commit b9bd5c5ac4
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47

View File

@ -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);