From ff63f9377ddce229ecf0e90b43f1d7de74bd62fa Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Sun, 20 Jul 2025 21:46:10 +0100 Subject: [PATCH] Fix variable typo in Weekly report cron - it should actually send out weekly reports now! --- auto-report-mail/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto-report-mail/index.js b/auto-report-mail/index.js index 2a94e6c..cc7d4c5 100644 --- a/auto-report-mail/index.js +++ b/auto-report-mail/index.js @@ -64,7 +64,7 @@ cron.schedule('5 1 * * *', () => { cron.schedule('10 1 * * 1', () => { const today = new Date(); const end = new Date(today); - end.setUTCDate(roday.getUTCDate() - 1); + end.setUTCDate(today.getUTCDate() - 1); const start = new Date(end); start.setUTCDate(end.getUTCDate() - 6); sendReportEmail(start, end, "TrACreport Weekly Report");