diff --git a/middlewares/validation.js b/middlewares/validation.js index 6c20b43..afdc648 100644 --- a/middlewares/validation.js +++ b/middlewares/validation.js @@ -18,6 +18,8 @@ module.exports = { ...(validationResult.body && { bodyError: validationResult.body.error.details }), ...(validationResult.query && { queryError: validationResult.query.error.details }) })) + return; } + next() } }