diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-09-08 00:31:44 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-09-08 00:31:44 +1000 |
commit | 280a70444c4c0ce362fb541da7f934b03243ea6d (patch) | |
tree | 8c6c555915db1feb7ca3a350986a99136f4d7d9c /api/src/routes/users/@me | |
parent | Add lazyrequest sessions priority (diff) | |
download | server-280a70444c4c0ce362fb541da7f934b03243ea6d.tar.xz |
Send user settings on PATCH users/@me/settings
Diffstat (limited to 'api/src/routes/users/@me')
-rw-r--r-- | api/src/routes/users/@me/settings.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/users/@me/settings.ts b/api/src/routes/users/@me/settings.ts index 787ea9d4..a03e2fdd 100644 --- a/api/src/routes/users/@me/settings.ts +++ b/api/src/routes/users/@me/settings.ts @@ -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; |