Add validation for status param
This commit is contained in:
1 parent
d65a5d001a
commit
c7c9835e9c
1 file changed
+2
@@ -292,6 +292,7 @@ const getChecksQueryValidation = joi.object({
|
|||||||
filter: joi.string().valid("all", "down", "resolve"),
|
filter: joi.string().valid("all", "down", "resolve"),
|
||||||
page: joi.number(),
|
page: joi.number(),
|
||||||
rowsPerPage: joi.number(),
|
rowsPerPage: joi.number(),
|
||||||
|
status: joi.boolean(),
|
||||||
});
|
});
|
||||||
|
|
||||||
const getTeamChecksParamValidation = joi.object({
|
const getTeamChecksParamValidation = joi.object({
|
||||||
@@ -305,6 +306,7 @@ const getTeamChecksQueryValidation = joi.object({
|
|||||||
filter: joi.string().valid("all", "down", "resolve"),
|
filter: joi.string().valid("all", "down", "resolve"),
|
||||||
page: joi.number(),
|
page: joi.number(),
|
||||||
rowsPerPage: joi.number(),
|
rowsPerPage: joi.number(),
|
||||||
|
status: joi.boolean(),
|
||||||
});
|
});
|
||||||
|
|
||||||
const deleteChecksParamValidation = joi.object({
|
const deleteChecksParamValidation = joi.object({
|
||||||
|
|||||||
Reference in new issue
Block a user