diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-02-02 22:24:56 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-02 22:24:56 +1100 |
commit | 067d2d8be8edc0f8f4492e7d02a0899f244c2dde (patch) | |
tree | 606c7569ed928a0a8f6727c32bb303211e7f64c2 /src/api/routes | |
parent | Merge pull request from GHSA-9q7f-pv47-cxp9 (diff) | |
download | server-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.ts | 4 |
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 }); }, ); |