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");