From b95bf31e572f0a936b1a138c5c5278ea050ba8b5 Mon Sep 17 00:00:00 2001 From: vantezzen Date: Fri, 18 Oct 2019 21:20:45 +0200 Subject: Fix lint --- src/server/app/Controllers/Http/UserController.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/server/app/Controllers/Http/UserController.js b/src/server/app/Controllers/Http/UserController.js index be7ebe5fe..07e118afd 100644 --- a/src/server/app/Controllers/Http/UserController.js +++ b/src/server/app/Controllers/Http/UserController.js @@ -3,7 +3,6 @@ const Workspace = use('App/Models/Workspace'); const { validateAll, } = use('Validator'); -const Env = use('Env'); const btoa = require('btoa'); const fetch = require('node-fetch'); @@ -11,7 +10,7 @@ const uuid = require('uuid/v4'); const crypto = require('crypto'); const apiRequest = (url, route, method, auth) => new Promise((resolve, reject) => { - const base = url + '/v1/'; + const base = `${url}/v1/`; const user = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Ferdi/5.3.0-beta.1 Chrome/69.0.3497.128 Electron/4.2.4 Safari/537.36'; try { @@ -126,7 +125,7 @@ class UserController { const hashedPassword = crypto.createHash('sha256').update(password).digest('base64'); - const base = server + '/v1/'; + const base = `${server}/v1/`; const userAgent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Ferdi/5.3.0-beta.1 Chrome/69.0.3497.128 Electron/4.2.4 Safari/537.36'; // Try to get an authentication token -- cgit v1.2.3-70-g09d2