mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-14 00:45:40 +00:00
Send user settings on PATCH users/@me/settings
This commit is contained in:
@@ -22,7 +22,7 @@ router.patch("/", route({ body: "UserSettingsSchema" }), async (req: Request, re
|
||||
user.settings = { ...user.settings, ...body };
|
||||
await user.save();
|
||||
|
||||
res.sendStatus(204);
|
||||
res.json(user.settings);
|
||||
});
|
||||
|
||||
export default router;
|
||||
|
||||
Reference in New Issue
Block a user