mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 18:19:25 +00:00
Lint cleanup with new rules
This commit is contained in:
@@ -171,7 +171,7 @@ router.get('/password-reset/:uuid/:token', async (req, res) => {
|
||||
let pr;
|
||||
try {
|
||||
pr = await new PasswordReset(uuid, token);
|
||||
} catch(e) {
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
return res.redirect('/password-reset');
|
||||
}
|
||||
@@ -214,7 +214,7 @@ router.post('/change-password', async (req, res) => {
|
||||
fields.get('uuid'),
|
||||
fields.get('token')
|
||||
);
|
||||
} catch(e) {
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
return res.redirect('/password-reset');
|
||||
}
|
||||
|
||||
@@ -4,13 +4,15 @@ const express = require('express');
|
||||
const router = express.Router();
|
||||
|
||||
router.get('/reports', (req, res, next) => {
|
||||
/*
|
||||
/* eslint-disable multiline-comment-style */
|
||||
/*
|
||||
return res.render('reports', {
|
||||
title: 'Stratos - Reports',
|
||||
current: 'Reports',
|
||||
name: req.session.fullName
|
||||
});
|
||||
*/
|
||||
*/
|
||||
/* eslint-enable multiline-comment-style */
|
||||
|
||||
next();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user