Browse Source

touch-up

pull/1/head
Rob Colbert 3 years ago
parent
commit
da2800e60f
  1. 4
      app/controllers/user.js

4
app/controllers/user.js

@ -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 });

Loading…
Cancel
Save