fix: Eslint offenses for JS files

This commit is contained in:
Faruk AYDIN
2024-01-07 20:09:36 +01:00
parent 9ffe2c14df
commit 879aa1f9f8
15 changed files with 29 additions and 39 deletions

View File

@@ -1,6 +1,7 @@
import logger from './logger.js';
// Do not remove `next` argument as the function signature will not fit for an error handler middleware
// eslint-disable-next-line no-unused-vars
const errorHandler = (err, req, res, next) => {
if (err.message === 'Not Found') {
res.status(404).end();