summary refs log tree commit diff
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-08 00:31:44 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-08 00:31:44 +1000
commit280a70444c4c0ce362fb541da7f934b03243ea6d (patch)
tree8c6c555915db1feb7ca3a350986a99136f4d7d9c
parentAdd lazyrequest sessions priority (diff)
downloadserver-280a70444c4c0ce362fb541da7f934b03243ea6d.tar.xz
Send user settings on PATCH users/@me/settings
-rw-r--r--api/src/routes/users/@me/settings.ts2
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;