Skip to content

Commit

Permalink
include today's org
Browse files Browse the repository at this point in the history
  • Loading branch information
emyl3 committed Jan 26, 2024
1 parent b184ef6 commit a7bc12d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public ReminderService(OrganizationQueueRepository orgQueueRepo, EmailService em
* Wrapper method for sending account reminder emails so automation can call the inner method
* without hitting the lock or conditions.
*/
@Scheduled(cron = "0 0 14 * * *", zone = "America/New_York")
@Scheduled(cron = "0 0 15 * * *", zone = "America/New_York")
@SchedulerLock(
name = "ReminderService_sendAccountReminderEmails",
lockAtLeastFor = "PT30S",
Expand All @@ -57,7 +57,7 @@ public void sendAccountReminderEmails() {

// For now, the date range to consider is the previous day
Date rangeStartDate = localDateTimeToDate(tz.toZoneId(), now.minusDays(1).atStartOfDay());
Date rangeStopDate = localDateTimeToDate(tz.toZoneId(), now.atStartOfDay());
Date rangeStopDate = localDateTimeToDate(tz.toZoneId(), LocalDateTime.now());

log.info("CRON -- account reminder emails for {} - {}", rangeStartDate, rangeStopDate);

Expand Down

0 comments on commit a7bc12d

Please sign in to comment.