Fix variable typo in Weekly report cron - it should actually send out weekly reports now!
This commit is contained in:
parent
997c758403
commit
ff63f9377d
@ -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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user