From 889aa048084cf99f96b25c3ce9c9acf5f5e18cbb Mon Sep 17 00:00:00 2001 From: mhmmdafif Date: Wed, 31 Dec 2025 15:38:47 +0700 Subject: [PATCH] update is_read in notification error --- validate/notification.schema.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) 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 = {