Fix variable typo in Weekly report cron - it should actually send out weekly reports now!

This commit is contained in:
Fred Boniface 2025-07-20 21:46:10 +01:00
parent 997c758403
commit ff63f9377d

View File

@ -64,7 +64,7 @@ cron.schedule('5 1 * * *', () => {
cron.schedule('10 1 * * 1', () => { cron.schedule('10 1 * * 1', () => {
const today = new Date(); const today = new Date();
const end = new Date(today); const end = new Date(today);
end.setUTCDate(roday.getUTCDate() - 1); end.setUTCDate(today.getUTCDate() - 1);
const start = new Date(end); const start = new Date(end);
start.setUTCDate(end.getUTCDate() - 6); start.setUTCDate(end.getUTCDate() - 6);
sendReportEmail(start, end, "TrACreport Weekly Report"); sendReportEmail(start, end, "TrACreport Weekly Report");