update is_read in notification error

This commit is contained in:
2025-12-31 15:38:47 +07:00
parent 25ba80ab7e
commit 889aa04808

View File

@@ -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 = {