From eb175779deabf22ada94ae48ab8b32e72b8745b2 Mon Sep 17 00:00:00 2001 From: Bastien DUMONT <bdumont@grandlyon.com> Date: Tue, 8 Oct 2024 10:31:43 +0200 Subject: [PATCH] chore(mails): enable mails in local --- src/targets/services/monthlyReportNotification.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/targets/services/monthlyReportNotification.ts b/src/targets/services/monthlyReportNotification.ts index 672132e57..a89b7c2ca 100644 --- a/src/targets/services/monthlyReportNotification.ts +++ b/src/targets/services/monthlyReportNotification.ts @@ -204,6 +204,7 @@ const monthlyReportNotification = async ({ logStack('info', 'Creation of mail...') const mailService = new MailService() + const envService = new EnvironmentService() const today = DateTime.local().setZone('utc', { keepLocalTime: true, @@ -290,7 +291,7 @@ const monthlyReportNotification = async ({ }) const mailData = { - mode: 'campaign', + mode: envService.isProduction() ? 'campaign' : 'noreply', subject: monthlyReport.subject, parts: [ { -- GitLab