Add creatCheck test
This commit is contained in:
1 parent
e052adfd91
commit
22a6d2ef2c
3 files changed
+65
-1
No files matched your search
@@ -20,6 +20,7 @@ const createCheck = async (req, res, next) => {
|
||||
await createCheckParamValidation.validateAsync(req.params);
|
||||
await createCheckBodyValidation.validateAsync(req.body);
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
next(handleValidationError(error, SERVICE_NAME));
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user