From c45a2b83bdbe0f9480027ef5c4d06cc11431a7a0 Mon Sep 17 00:00:00 2001 From: ehsang Date: Sat, 21 Sep 2024 22:19:36 +0330 Subject: [PATCH] re-schdule --- src/features/schedule/schedule.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/features/schedule/schedule.service.ts b/src/features/schedule/schedule.service.ts index 657915769..5a5a2d378 100644 --- a/src/features/schedule/schedule.service.ts +++ b/src/features/schedule/schedule.service.ts @@ -129,8 +129,8 @@ export class ScheduleService { } // ERROR [Scheduler] ServerError: Can't send mail - all recipients were rejected: 550 No such user here - @Cron('00 10 * * Thu', { - name: 'MonthlyCampaigns try At 10:00 on Thursdays.', // we try every week and only send to those who did not receive (because their child have no needs, etc.) + @Cron('00 09 * * Sun', { + name: 'MonthlyCampaigns try At 09:00 on Sunday.', // we try every week and only send to those who did not receive (because their child have no needs, etc.) timeZone: 'Asia/Tehran', }) async handleMonthlyCampaignsCron() { @@ -146,7 +146,7 @@ export class ScheduleService { this.logger.debug( 'Sending user Campaigns at 01:00 PM, only on Thursdays', ); - // await this.campaignService.sendUserMonthlyCampaigns(); + await this.campaignService.sendUserMonthlyCampaigns(); } }