diff options
Diffstat (limited to 'src/api')
-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 }); }, ); |