From e40349a05f262b140c2211cc407b86adf815a998 Mon Sep 17 00:00:00 2001 From: Mel O'Hagan Date: Thu, 22 Sep 2022 08:09:54 +0100 Subject: [PATCH] Allow null values for cc, bcc --- packages/worker/src/api/routes/global/email.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/worker/src/api/routes/global/email.js b/packages/worker/src/api/routes/global/email.js index db3b4db63b..d545c10ede 100644 --- a/packages/worker/src/api/routes/global/email.js +++ b/packages/worker/src/api/routes/global/email.js @@ -15,10 +15,10 @@ function buildEmailSendValidation() { }), cc: Joi.string().email({ multiple: true, - }), + }).allow("", null), bcc: Joi.string().email({ multiple: true, - }), + }).allow("", null), purpose: Joi.string().valid(...Object.values(EmailTemplatePurpose)), workspaceId: Joi.string().allow("", null), from: Joi.string().allow("", null),