diff --git a/app/controllers/user.js b/app/controllers/user.js index 70c0074..edcef43 100644 --- a/app/controllers/user.js +++ b/app/controllers/user.js @@ -279,11 +279,11 @@ class UserController extends SiteController { async postUpdateSettings (req, res) { const { user: userService } = this.dtp.services; try { - const displayList = this.createDisplayList('app-settings'); - await userService.updateSettings(req.user, req.body); + const displayList = this.createDisplayList('app-settings'); displayList.reload(); + res.status(200).json({ success: true, displayList }); } catch (error) { this.log.error('failed to update account settings', { error });