diff options
author | Markus Hatvan <markus_hatvan@aon.at> | 2021-12-02 23:57:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-03 04:27:13 +0530 |
commit | f64f1b3bd9bec4036748b98ff8ac0f0431749f30 (patch) | |
tree | 33691b4b02a546a7a1665ca29b18e3baa135c9ef /src/internal-server/app/Controllers/Http/UserController.js | |
parent | 5.6.4-nightly.22 [skip ci] (diff) | |
download | ferdium-app-f64f1b3bd9bec4036748b98ff8ac0f0431749f30.tar.gz ferdium-app-f64f1b3bd9bec4036748b98ff8ac0f0431749f30.tar.zst ferdium-app-f64f1b3bd9bec4036748b98ff8ac0f0431749f30.zip |
chore: upgrade commitlint and eslint-plugin-unicorn to latest (#2295)
- upgrade commitlint and eslint-plugin-unicorn dependencies
- update prepare-code script to run lint:fix instead of lint
- fix unicorn/no-await-expression-member lint issues
- various whitespace formatting fixes due to lint:fix
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', |