Skip to content

Commit

Permalink
PI-2543 Update UPW reminder schedule while testing (#4428)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-bcl authored Nov 14, 2024
1 parent 91cf665 commit 6405a62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ generic-service:
jobs:
unpaid-work-appointment-reminders:
dry-run: true
schedule: '0 18 * * *' # 6:00pm UTC every day
schedule: '30 18 * * *' # 6:30pm UTC every day
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6405a62

Please sign in to comment.