From 761e1c71844f4cc4a70147984d6155105b24c68b Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Fri, 24 Feb 2023 07:47:13 +0100 Subject: [PATCH] :adhesive_bandage: (sendEmail) Save error first in logs --- .../integrations/sendEmail/api/utils/executeSendEmailBlock.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/viewer/src/features/blocks/integrations/sendEmail/api/utils/executeSendEmailBlock.tsx b/apps/viewer/src/features/blocks/integrations/sendEmail/api/utils/executeSendEmailBlock.tsx index 1f673292c..f838bcd1f 100644 --- a/apps/viewer/src/features/blocks/integrations/sendEmail/api/utils/executeSendEmailBlock.tsx +++ b/apps/viewer/src/features/blocks/integrations/sendEmail/api/utils/executeSendEmailBlock.tsx @@ -102,6 +102,7 @@ const sendEmail = async ({ resultId, message: 'Email not sent', details: { + error: 'No email body found', transportConfig, recipients, subject, @@ -146,12 +147,12 @@ const sendEmail = async ({ resultId, message: 'Email not sent', details: { + error: err, transportConfig: { ...transportConfig, auth: { user: transportConfig.auth.user, pass: '******' }, }, email, - error: err, }, }) }