@@ -3,7 +3,10 @@ import expireAdminNotes from "./scripts/expireAdminNotes";
33import expireAdminAnnouncements from "./scripts/expireAdminAnnouncements" ;
44import expireLoginStreak from "./scripts/expireLoginStreak" ;
55import createAssignedTasks from "./scripts/createAssignedTask" ;
6- import { sendWeeklyReports , sendMonthlyReports } from "./scripts/sendReportEmails" ;
6+ import {
7+ sendWeeklyReports ,
8+ sendMonthlyReports ,
9+ } from "./scripts/sendReportEmails" ;
710
811cron . schedule ( "0 0 * * * *" , async ( ) => {
912 const res = await expireAdminNotes ( ) ;
@@ -44,8 +47,10 @@ cron.schedule("0 0 * * 1", async () => {
4447// Weekly reports - every Monday at 9 AM
4548cron . schedule ( "0 9 * * 1" , async ( ) => {
4649 const timestamp = new Date ( ) . toISOString ( ) ;
47- console . log ( `[${ timestamp } ] Starting weekly report generation and emailing...` ) ;
48-
50+ console . log (
51+ `[${ timestamp } ] Starting weekly report generation and emailing...`
52+ ) ;
53+
4954 const res = await sendWeeklyReports ( ) ;
5055 if ( res ) {
5156 console . log ( `[${ timestamp } ] Weekly reports sent successfully` ) ;
@@ -57,8 +62,10 @@ cron.schedule("0 9 * * 1", async () => {
5762// Monthly reports - first day of month at 9 AM
5863cron . schedule ( "0 9 1 * *" , async ( ) => {
5964 const timestamp = new Date ( ) . toISOString ( ) ;
60- console . log ( `[${ timestamp } ] Starting monthly report generation and emailing...` ) ;
61-
65+ console . log (
66+ `[${ timestamp } ] Starting monthly report generation and emailing...`
67+ ) ;
68+
6269 const res = await sendMonthlyReports ( ) ;
6370 if ( res ) {
6471 console . log ( `[${ timestamp } ] Monthly reports sent successfully` ) ;
0 commit comments