update is_read in notification error
This commit is contained in:
@@ -40,21 +40,11 @@ const insertNotificationSchema = Joi.object({
|
|||||||
// Update Notification Schema
|
// Update Notification Schema
|
||||||
// ========================
|
// ========================
|
||||||
const updateNotificationSchema = Joi.object({
|
const updateNotificationSchema = Joi.object({
|
||||||
is_send: Joi.boolean().optional().messages({
|
|
||||||
"boolean.base": "is_send must be a boolean",
|
|
||||||
}),
|
|
||||||
|
|
||||||
is_delivered: Joi.boolean().optional().messages({
|
|
||||||
"boolean.base": "is_delivered must be a boolean",
|
|
||||||
}),
|
|
||||||
|
|
||||||
is_read: Joi.boolean().optional().messages({
|
is_read: Joi.boolean().optional().messages({
|
||||||
"boolean.base": "is_read must be a boolean",
|
"boolean.base": "is_read must be a boolean",
|
||||||
}),
|
}),
|
||||||
|
|
||||||
is_active: Joi.boolean().optional().messages({
|
|
||||||
"boolean.base": "is_active must be a boolean",
|
|
||||||
}),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|||||||
Reference in New Issue
Block a user