mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 10:22:34 +00:00
Send user settings on PATCH users/@me/settings
This commit is contained in:
1 parent
09a5ce38ba
commit
280a70444c
1 file changed
+1
-1
@@ -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