summary refs log tree commit diff
path: root/src/api/routes
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-02-02 22:24:56 +1100
committerGitHub <noreply@github.com>2023-02-02 22:24:56 +1100
commit067d2d8be8edc0f8f4492e7d02a0899f244c2dde (patch)
tree606c7569ed928a0a8f6727c32bb303211e7f64c2 /src/api/routes
parentMerge pull request from GHSA-9q7f-pv47-cxp9 (diff)
downloadserver-067d2d8be8edc0f8f4492e7d02a0899f244c2dde.tar.xz
Merge pull request from GHSA-hqqp-gpqw-9w5c
Diffstat (limited to 'src/api/routes')
-rw-r--r--src/api/routes/users/@me/settings.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/routes/users/@me/settings.ts b/src/api/routes/users/@me/settings.ts
index c883bb30..cfcedec1 100644
--- a/src/api/routes/users/@me/settings.ts
+++ b/src/api/routes/users/@me/settings.ts
@@ -44,9 +44,9 @@ router.patch(
 
 		user.settings.assign(body);
 
-		user.settings.save();
+		await user.settings.save();
 
-		res.json(user.settings);
+		res.json({ ...user.settings, index: undefined });
 	},
 );