|
@ -279,11 +279,11 @@ class UserController extends SiteController { |
|
|
async postUpdateSettings (req, res) { |
|
|
async postUpdateSettings (req, res) { |
|
|
const { user: userService } = this.dtp.services; |
|
|
const { user: userService } = this.dtp.services; |
|
|
try { |
|
|
try { |
|
|
const displayList = this.createDisplayList('app-settings'); |
|
|
|
|
|
|
|
|
|
|
|
await userService.updateSettings(req.user, req.body); |
|
|
await userService.updateSettings(req.user, req.body); |
|
|
|
|
|
|
|
|
|
|
|
const displayList = this.createDisplayList('app-settings'); |
|
|
displayList.reload(); |
|
|
displayList.reload(); |
|
|
|
|
|
|
|
|
res.status(200).json({ success: true, displayList }); |
|
|
res.status(200).json({ success: true, displayList }); |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
this.log.error('failed to update account settings', { error }); |
|
|
this.log.error('failed to update account settings', { error }); |
|
|