Skip to content

Commit

Permalink
schedule changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan-g committed Jul 20, 2024
1 parent 5bf25c5 commit a5aaeb1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/features/schedule/schedule.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 17 * * Sun', {
name: 'MonthlyCampaigns try At 17:00 on Sunday.', // we try every week and only send to those who did not receive (because their child have no needs, etc.)
@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.)
timeZone: 'Asia/Tehran',
})
async handleMonthlyCampaignsCron() {
Expand Down Expand Up @@ -160,8 +160,8 @@ export class ScheduleService {
}
}

@Cron('30 9 * * Wed', {
name: 'Reminders to announce arrivals At 09:30 on Wednesday.',
@Cron('50 12 * * Sat', {
name: 'Reminders to announce arrivals At 12:50 on Sat.',
timeZone: 'Asia/Tehran',
})
async handleAnnounceArrivalCron() {
Expand Down

0 comments on commit a5aaeb1

Please sign in to comment.