Fix validation schema for the page speed check.

This commit is contained in:
M M committed 2024-07-24 10:49:59 -07:00
1 parent 42b6ec661a
commit bed92c4915
1 file changed
+1 -5
+1 -5
View File
@@ -221,11 +221,7 @@ const createPageSpeedCheckParamValidation = joi.object({
//Validation schema for the monitorId body
const createPageSpeedCheckBodyValidation = joi.object({
monitorId: joi.string().required(),
accessibility: joi.number().required().min(0).max(100),
bestPractices: joi.number().required().min(0).max(100),
seo: joi.number().required().min(0).max(100),
performance: joi.number().required().min(0).max(100),
url: joi.string().required(),
});
const deletePageSpeedCheckParamValidation = joi.object({