Add creatCheck test

This commit is contained in:
Alex Holliday committed 2024-10-11 10:39:18 +08:00
1 parent e052adfd91
commit 22a6d2ef2c
3 files changed
+65 -1

No files matched your search

+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;
}