diff options
Diffstat (limited to 'src/internal-server/app/Controllers/Http/UserController.js')
-rw-r--r-- | src/internal-server/app/Controllers/Http/UserController.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/internal-server/app/Controllers/Http/UserController.js b/src/internal-server/app/Controllers/Http/UserController.js index 25b5277bd..2ecc8241c 100644 --- a/src/internal-server/app/Controllers/Http/UserController.js +++ b/src/internal-server/app/Controllers/Http/UserController.js | |||
@@ -171,7 +171,6 @@ class UserController { | |||
171 | return response.status(401).send(errorMessage); | 171 | return response.status(401).send(errorMessage); |
172 | } | 172 | } |
173 | 173 | ||
174 | // eslint-disable-next-line prefer-destructuring | ||
175 | token = content.token; | 174 | token = content.token; |
176 | } catch (error) { | 175 | } catch (error) { |
177 | return response.status(401).send({ | 176 | return response.status(401).send({ |
@@ -300,7 +299,7 @@ class UserController { | |||
300 | } while ( | 299 | } while ( |
301 | (await Workspace.query().where('workspaceId', newWorkspaceId).fetch()) | 300 | (await Workspace.query().where('workspaceId', newWorkspaceId).fetch()) |
302 | .rows.length > 0 | 301 | .rows.length > 0 |
303 | ); // eslint-disable-line no-await-in-loop | 302 | ); |
304 | 303 | ||
305 | if ( | 304 | if ( |
306 | workspace.services && | 305 | workspace.services && |
@@ -340,7 +339,7 @@ class UserController { | |||
340 | } while ( | 339 | } while ( |
341 | (await Service.query().where('serviceId', newServiceId).fetch()).rows | 340 | (await Service.query().where('serviceId', newServiceId).fetch()).rows |
342 | .length > 0 | 341 | .length > 0 |
343 | ); // eslint-disable-line no-await-in-loop | 342 | ); |
344 | 343 | ||
345 | // store the old serviceId as the key for future lookup | 344 | // store the old serviceId as the key for future lookup |
346 | serviceIdTranslation[service.serviceId] = newServiceId; | 345 | serviceIdTranslation[service.serviceId] = newServiceId; |