From 6405a62ab0ebc8a1f6319300511fa400c063d3f8 Mon Sep 17 00:00:00 2001 From: Marcus Aspin Date: Thu, 14 Nov 2024 14:04:55 +0000 Subject: [PATCH] PI-2543 Update UPW reminder schedule while testing (#4428) --- .../appointment-reminders-and-delius/deploy/values-prod.yml | 2 +- .../digital/hmpps/service/UnpaidWorkAppointmentsService.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,