From a422850feee28f93b260934ff68a8bb7e85af631 Mon Sep 17 00:00:00 2001 From: Mirko Mollik Date: Mon, 7 Oct 2024 14:03:30 +0200 Subject: [PATCH] fix: newsletter production call Signed-off-by: Mirko Mollik --- viewer/scripts/newsletter.mjs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/viewer/scripts/newsletter.mjs b/viewer/scripts/newsletter.mjs index 531f141..e1d889f 100644 --- a/viewer/scripts/newsletter.mjs +++ b/viewer/scripts/newsletter.mjs @@ -68,13 +68,13 @@ if(process.env.EMAIL_STORE){ function getMailConfig() { if(process.env.NODE_ENV === 'production'){ - return { - service: 'gmail', - auth: { - user: process.env.EMAIL_ADDRESS, - pass: process.env.EMAIL_PASSWORD - } - } + return Promise.resolve({ + service: 'gmail', + auth: { + user: process.env.EMAIL_ADDRESS, + pass: process.env.EMAIL_PASSWORD + } + }); } else { return createTestAccount().then((account) => ({