diff --git a/projects/appointment-reminders-and-delius/deploy/values-prod.yml b/projects/appointment-reminders-and-delius/deploy/values-prod.yml index 60c56efbf9..3b5628ba8d 100644 --- a/projects/appointment-reminders-and-delius/deploy/values-prod.yml +++ b/projects/appointment-reminders-and-delius/deploy/values-prod.yml @@ -11,4 +11,4 @@ generic-service: jobs: unpaid-work-appointment-reminders: dry-run: true - schedule: '0 18 * * *' # 6:00pm UTC every day \ No newline at end of file + schedule: '30 18 * * *' # 6:30pm UTC every day \ No newline at end of file diff --git a/projects/appointment-reminders-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/UnpaidWorkAppointmentsService.kt b/projects/appointment-reminders-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/UnpaidWorkAppointmentsService.kt index 2b08245809..71481ec84c 100644 --- a/projects/appointment-reminders-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/UnpaidWorkAppointmentsService.kt +++ b/projects/appointment-reminders-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/UnpaidWorkAppointmentsService.kt @@ -15,7 +15,7 @@ class UnpaidWorkAppointmentsService( @Value("\${govuk-notify.templates.upw-appointment-reminder}") private val templateId: String, ) { fun sendUnpaidWorkAppointmentReminders(providerCode: String, dryRun: Boolean = false) { - upwAppointmentRepository.getUnpaidWorkAppointments(LocalDate.now().plusDays(2), providerCode) + upwAppointmentRepository.getUnpaidWorkAppointments(LocalDate.now().plusDays(3), providerCode) .forEach { notificationClient.sendSms( templateId,