Add eslint rule: max line length (80)

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface
2023-06-07 21:53:56 +01:00
parent 66b2ba002b
commit 849c31af36
11 changed files with 67 additions and 39 deletions

View File

@@ -15,7 +15,8 @@ module.exports = async function authCheck(req, res, next) {
if (!result) {
const err = new Error('Unauthorised');
err.status = 401;
log.out('authMiddlewares: Authentication attempted with incorrect key', 'warn');
log.out('authMiddlewares: Authentication attempted with incorrect key',
'warn');
return next(err);
} else {
log.out('authMiddlewares: User authenticated', 'dbug');