start upgrading eslint

This commit is contained in:
Matteo Pagliazzi
2019-10-08 16:57:10 +02:00
parent 90c917f69e
commit 621787915c
304 changed files with 5992 additions and 6394 deletions

View File

@@ -1,6 +1,6 @@
import { validatePasswordResetCodeAndFindUser } from '../../libs/password';
let api = {};
const api = {};
// Internal authentication routes
@@ -10,7 +10,7 @@ api.resetPasswordSetNewOne = {
url: '/static/user/auth/local/reset-password-set-new-one',
runCron: false,
async handler (req, res) {
const code = req.query.code;
const { code } = req.query;
const user = await validatePasswordResetCodeAndFindUser(code);
const isValidCode = Boolean(user);