diff --git a/.eslintrc.json b/.eslintrc.json index 5aa5c53..a820283 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -9,6 +9,6 @@ } ], "no-console": "off", - "no-underscore-dangle": ["on", { "allow": ["_id"] }] + "no-underscore-dangle": ["warn", { "allow": ["_id"] }] } } diff --git a/app.js b/app.js index bfe0a08..6273ae6 100644 --- a/app.js +++ b/app.js @@ -44,7 +44,6 @@ app.use((req, res) => { }); // handle errors - app.use((err, req, res, next) => { if (err.name === 'ValidationError') { res.status(400);