fix: Eslint offenses for backend package

This commit is contained in:
Faruk AYDIN
2024-01-04 12:32:07 +01:00
parent 2ad23ff2e3
commit ea81697b5f
4 changed files with 12 additions and 18 deletions

View File

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