multi mail send to

This commit is contained in:
Hervé de CHAVIGNY 2022-09-05 06:00:44 -04:00
parent d29a53d73a
commit c105759276
1 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,9 @@ const router = Router()
function buildEmailSendValidation() {
// prettier-ignore
return joiValidator.body(Joi.object({
email: Joi.string().email(),
email: Joi.string().email({
multiple: true,
}),
purpose: Joi.string().valid(...Object.values(EmailTemplatePurpose)),
workspaceId: Joi.string().allow("", null),
from: Joi.string().allow("", null),