Allow null values for cc, bcc
This commit is contained in:
parent
a0a87e0b1d
commit
e40349a05f
|
@ -15,10 +15,10 @@ function buildEmailSendValidation() {
|
||||||
}),
|
}),
|
||||||
cc: Joi.string().email({
|
cc: Joi.string().email({
|
||||||
multiple: true,
|
multiple: true,
|
||||||
}),
|
}).allow("", null),
|
||||||
bcc: Joi.string().email({
|
bcc: Joi.string().email({
|
||||||
multiple: true,
|
multiple: true,
|
||||||
}),
|
}).allow("", null),
|
||||||
purpose: Joi.string().valid(...Object.values(EmailTemplatePurpose)),
|
purpose: Joi.string().valid(...Object.values(EmailTemplatePurpose)),
|
||||||
workspaceId: Joi.string().allow("", null),
|
workspaceId: Joi.string().allow("", null),
|
||||||
from: Joi.string().allow("", null),
|
from: Joi.string().allow("", null),
|
||||||
|
|
Loading…
Reference in New Issue