Revert moving notification check to validation, FE always sends an empty notification array
This commit is contained in:
1 parent
d8480b2548
commit
fa5eef14c3
2 files changed
+7
-6
No files matched your search
@@ -227,7 +227,7 @@ const createMonitorBodyValidation = joi.object({
|
||||
usage_memory: joi.number(),
|
||||
usage_disk: joi.number(),
|
||||
}),
|
||||
notifications: joi.array().items(joi.object()).min(1),
|
||||
notifications: joi.array().items(joi.object()),
|
||||
});
|
||||
|
||||
const editMonitorBodyValidation = joi.object({
|
||||
|
||||
Reference in new issue
Block a user