From c837ad75f4b9449b28f8616b95da1a7066744fe9 Mon Sep 17 00:00:00 2001 From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com> Date: Fri, 26 Nov 2021 16:23:04 +0100 Subject: [PATCH] fix(Mail): fix month query for newsletter, we had one month offset that is no longer required --- src/targets/services/monthlyReportNotification.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/targets/services/monthlyReportNotification.ts b/src/targets/services/monthlyReportNotification.ts index 11db5f308..9e40cbd78 100644 --- a/src/targets/services/monthlyReportNotification.ts +++ b/src/targets/services/monthlyReportNotification.ts @@ -223,7 +223,7 @@ const monthlyReportNotification = async ({ const today = DateTime.local().setZone('utc', { keepLocalTime: true, }) - const month = today.minus({ month: 1 }).toFormat('MM') + const month = today.toFormat('MM') const year = today.toFormat('yyyy') const monthlyReport: MonthlReport = await getMonthlyReport( year, -- GitLab