Add creatCheck test

This commit is contained in:
Alex Holliday
2024-10-11 10:39:18 +08:00
parent e052adfd91
commit 22a6d2ef2c
3 changed files with 65 additions and 1 deletions
+1
View File
@@ -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;
}