From 77a8099a71cd2bb611b6571180f09b0002110786 Mon Sep 17 00:00:00 2001 From: vantezzen Date: Sun, 20 Oct 2019 18:19:45 +0200 Subject: Fix update settings response --- app/Controllers/Http/UserController.js | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) (limited to 'app/Controllers') diff --git a/app/Controllers/Http/UserController.js b/app/Controllers/Http/UserController.js index 2a35f93..edfccf2 100644 --- a/app/Controllers/Http/UserController.js +++ b/app/Controllers/Http/UserController.js @@ -171,19 +171,24 @@ class UserController { await auth.user.save(); return response.send({ - accountType: 'individual', - beta: false, - donor: {}, - email: auth.user.email, - emailValidated: true, - features: {}, - firstname: 'Franz', - id: '82c1cf9d-ab58-4da2-b55e-aaa41d2142d8', - isPremium: true, - isSubscriptionOwner: true, - lastname: 'Franz', - locale: 'en-US', - ...newSettings || {}, + data: { + accountType: 'individual', + beta: false, + donor: {}, + email: auth.user.email, + emailValidated: true, + features: {}, + firstname: 'Franz', + id: '82c1cf9d-ab58-4da2-b55e-aaa41d2142d8', + isPremium: true, + isSubscriptionOwner: true, + lastname: 'Franz', + locale: 'en-US', + ...newSettings || {}, + }, + status: [ + 'data-updated', + ] }); } -- cgit v1.2.3-54-g00ecf