console logs
This commit is contained in:
@@ -122,6 +122,7 @@ router.post(
|
||||
(req, res) => {
|
||||
const errors = validationResult(req)
|
||||
if (!errors.isEmpty()) {
|
||||
console.log('esdfsdfjhkldflkj')
|
||||
console.error(JSON.stringify(errors))
|
||||
return res.status(400).json({ errors: errors.array() })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user