diff options
author | vantezzen <hello@vantezzen.io> | 2019-10-20 18:19:45 +0200 |
---|---|---|
committer | vantezzen <hello@vantezzen.io> | 2019-10-20 18:19:45 +0200 |
commit | 77a8099a71cd2bb611b6571180f09b0002110786 (patch) | |
tree | 5225efc358ccca14f068ca4933362e15ae2b99a9 /app | |
parent | Fix user settings (diff) | |
download | ferdium-server-77a8099a71cd2bb611b6571180f09b0002110786.tar.gz ferdium-server-77a8099a71cd2bb611b6571180f09b0002110786.tar.zst ferdium-server-77a8099a71cd2bb611b6571180f09b0002110786.zip |
Fix update settings response
Diffstat (limited to 'app')
-rw-r--r-- | app/Controllers/Http/UserController.js | 31 |
1 files changed, 18 insertions, 13 deletions
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 { | |||
171 | await auth.user.save(); | 171 | await auth.user.save(); |
172 | 172 | ||
173 | return response.send({ | 173 | return response.send({ |
174 | accountType: 'individual', | 174 | data: { |
175 | beta: false, | 175 | accountType: 'individual', |
176 | donor: {}, | 176 | beta: false, |
177 | email: auth.user.email, | 177 | donor: {}, |
178 | emailValidated: true, | 178 | email: auth.user.email, |
179 | features: {}, | 179 | emailValidated: true, |
180 | firstname: 'Franz', | 180 | features: {}, |
181 | id: '82c1cf9d-ab58-4da2-b55e-aaa41d2142d8', | 181 | firstname: 'Franz', |
182 | isPremium: true, | 182 | id: '82c1cf9d-ab58-4da2-b55e-aaa41d2142d8', |
183 | isSubscriptionOwner: true, | 183 | isPremium: true, |
184 | lastname: 'Franz', | 184 | isSubscriptionOwner: true, |
185 | locale: 'en-US', | 185 | lastname: 'Franz', |
186 | ...newSettings || {}, | 186 | locale: 'en-US', |
187 | ...newSettings || {}, | ||
188 | }, | ||
189 | status: [ | ||
190 | 'data-updated', | ||
191 | ] | ||
187 | }); | 192 | }); |
188 | } | 193 | } |
189 | 194 | ||