update backend for inserting maintenance windows
This commit is contained in:
1 parent
c8418705b1
commit
47e051c2bb
3 files changed
+19
-30
No files matched your search
@@ -361,16 +361,14 @@ const deletePageSpeedCheckParamValidation = joi.object({
|
||||
//****************************************
|
||||
// MaintenanceWindowValidation
|
||||
//****************************************
|
||||
const createMaintenanceWindowParamValidation = joi.object({
|
||||
monitorId: joi.string().required(),
|
||||
});
|
||||
|
||||
const createMaintenanceWindowBodyValidation = joi.object({
|
||||
monitors: joi.array().items(joi.string()).required(),
|
||||
userId: joi.string().required(),
|
||||
active: joi.boolean().required(),
|
||||
oneTime: joi.boolean().required(),
|
||||
active: joi.boolean(),
|
||||
start: joi.date().required(),
|
||||
end: joi.date().required(),
|
||||
repeat: joi.number().required(),
|
||||
expiry: joi.date(),
|
||||
});
|
||||
|
||||
@@ -447,7 +445,6 @@ module.exports = {
|
||||
createPageSpeedCheckParamValidation,
|
||||
deletePageSpeedCheckParamValidation,
|
||||
createPageSpeedCheckBodyValidation,
|
||||
createMaintenanceWindowParamValidation,
|
||||
createMaintenanceWindowBodyValidation,
|
||||
getMaintenanceWindowsByUserIdParamValidation,
|
||||
getMaintenanceWindowsByMonitorIdParamValidation,
|
||||
|
||||
Reference in new issue
Block a user