Add useless emojis to email subect lines
This commit is contained in:
parent
ff63f9377d
commit
27621458df
@ -57,7 +57,7 @@ cron.schedule('5 1 * * *', () => {
|
|||||||
const today = new Date();
|
const today = new Date();
|
||||||
const yesterday = new Date(today);
|
const yesterday = new Date(today);
|
||||||
yesterday.setUTCDate(today.getUTCDate() - 1);
|
yesterday.setUTCDate(today.getUTCDate() - 1);
|
||||||
sendReportEmail(yesterday, yesterday, "TrACreport Daily Report");
|
sendReportEmail(yesterday, yesterday, "❄️ TrACreport Daily Report");
|
||||||
});
|
});
|
||||||
|
|
||||||
// Weekly Report
|
// Weekly Report
|
||||||
@ -67,7 +67,7 @@ cron.schedule('10 1 * * 1', () => {
|
|||||||
end.setUTCDate(today.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");
|
||||||
})
|
})
|
||||||
|
|
||||||
// Monthly Report
|
// Monthly Report
|
||||||
@ -75,7 +75,7 @@ cron.schedule('15 1 1 * *', () => {
|
|||||||
const today = new Date();
|
const today = new Date();
|
||||||
const end = new Date(Date.UTC(today.getUTCFullYear(), today.getUTCMonth(), 0)); // Last day of previous month
|
const end = new Date(Date.UTC(today.getUTCFullYear(), today.getUTCMonth(), 0)); // Last day of previous month
|
||||||
const start = new Date(Date.UTC(end.getUTCFullYear(), end.getUTCMonth(), 1)); // First day of previous month
|
const start = new Date(Date.UTC(end.getUTCFullYear(), end.getUTCMonth(), 1)); // First day of previous month
|
||||||
sendReportEmail(start, end, "TrACreport Monthly Report");
|
sendReportEmail(start, end, "🚂 TrACreport Monthly Report");
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log('📅 TrACreport schedulers are active');
|
console.log('📅 TrACreport schedulers are active');
|
Loading…
x
Reference in New Issue
Block a user