multi mail send to
This commit is contained in:
parent
a0f43107be
commit
4020625844
|
@ -10,7 +10,9 @@ const router = Router()
|
||||||
function buildEmailSendValidation() {
|
function buildEmailSendValidation() {
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
return joiValidator.body(Joi.object({
|
return joiValidator.body(Joi.object({
|
||||||
email: Joi.string().email(),
|
email: Joi.string().email({
|
||||||
|
multiple: true,
|
||||||
|
}),
|
||||||
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