diff options
Diffstat (limited to 'src/internal-server/app/Controllers/Http/UserController.js')
-rw-r--r-- | src/internal-server/app/Controllers/Http/UserController.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/internal-server/app/Controllers/Http/UserController.js b/src/internal-server/app/Controllers/Http/UserController.js index 2ecc8241c..abfbc2470 100644 --- a/src/internal-server/app/Controllers/Http/UserController.js +++ b/src/internal-server/app/Controllers/Http/UserController.js | |||
@@ -1,3 +1,4 @@ | |||
1 | /* eslint-disable no-await-in-loop, unicorn/no-await-expression-member */ | ||
1 | const User = use('App/Models/User'); | 2 | const User = use('App/Models/User'); |
2 | const Service = use('App/Models/Service'); | 3 | const Service = use('App/Models/Service'); |
3 | const Workspace = use('App/Models/Workspace'); | 4 | const Workspace = use('App/Models/Workspace'); |
@@ -230,8 +231,10 @@ class UserController { | |||
230 | auth, | 231 | auth, |
231 | response, | 232 | response, |
232 | }) { | 233 | }) { |
233 | const services = (await Service.all()).toJSON(); | 234 | const allServices = await Service.all(); |
234 | const workspaces = (await Workspace.all()).toJSON(); | 235 | const services = allServices.toJSON(); |
236 | const allWorkspaces = await Workspace.all(); | ||
237 | const workspaces = allWorkspaces.toJSON(); | ||
235 | 238 | ||
236 | const exportData = { | 239 | const exportData = { |
237 | username: 'Ferdi', | 240 | username: 'Ferdi', |