summaryrefslogtreecommitdiffstats
path: root/src/internal-server/app/Controllers/Http/UserController.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal-server/app/Controllers/Http/UserController.js')
-rw-r--r--src/internal-server/app/Controllers/Http/UserController.js7
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 */
1const User = use('App/Models/User'); 2const User = use('App/Models/User');
2const Service = use('App/Models/Service'); 3const Service = use('App/Models/Service');
3const Workspace = use('App/Models/Workspace'); 4const 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',