notification wa by mqtt broker
This commit is contained in:
@@ -13,7 +13,7 @@ const insertContactSchema = Joi.object({
|
||||
"Phone number must be a valid Indonesian number in format +628XXXXXXXXX",
|
||||
}),
|
||||
is_active: Joi.boolean().required(),
|
||||
contact_type: Joi.string().max(255).optional()
|
||||
contact_type: Joi.string().max(255).optional().allow(null)
|
||||
});
|
||||
|
||||
const updateContactSchema = Joi.object({
|
||||
@@ -26,7 +26,7 @@ const updateContactSchema = Joi.object({
|
||||
"Phone number must be a valid Indonesian number in format +628XXXXXXXXX",
|
||||
}),
|
||||
is_active: Joi.boolean().optional(),
|
||||
contact_type: Joi.string().max(255).optional()
|
||||
contact_type: Joi.string().max(255).optional().allow(null)
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
|
||||
Reference in New Issue
Block a user