-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,8 +128,8 @@ export class ScheduleService { | |
} | ||
|
||
// ERROR [Scheduler] ServerError: Can't send mail - all recipients were rejected: 550 <[email protected]> No such user here | ||
@Cron('00 10 * * Wed', { | ||
name: 'MonthlyCampaigns try At 10:00 on Wednsday.', // we try every week and only send to those who did not receive (because their child have no needs, etc.) | ||
@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.) | ||
timeZone: 'Asia/Tehran', | ||
}) | ||
async handleMonthlyCampaignsCron() { | ||
|
@@ -145,7 +145,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(); | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters