diff --git a/validate/notification.schema.js b/validate/notification.schema.js index e4796fb..7e73f9b 100644 --- a/validate/notification.schema.js +++ b/validate/notification.schema.js @@ -40,21 +40,11 @@ const insertNotificationSchema = Joi.object({ // Update Notification Schema // ======================== 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({ "boolean.base": "is_read must be a boolean", }), - - is_active: Joi.boolean().optional().messages({ - "boolean.base": "is_active must be a boolean", - }), + }); module.exports = {