Skip to content

Commit

Permalink
More accurate method name
Browse files Browse the repository at this point in the history
  • Loading branch information
sambiramairelogic committed Jan 27, 2025
1 parent f44ba4b commit a5387ad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/api/Nhs.Appointments.Core/BookingsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public async Task RecalculateAppointmentStatuses(string site, DateOnly day)

if (booking.Status is AppointmentStatus.Provisional)
{
await bookingDocumentStore.DeleteProvisionalBooking(booking.Reference, booking.Site);
await bookingDocumentStore.DeleteBooking(booking.Reference, booking.Site);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/api/Nhs.Appointments.Core/IBookingsDocumentStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public interface IBookingsDocumentStore
Task SetReminderSent(string bookingReference, string site);
Task<BookingConfirmationResult> ConfirmProvisional(string bookingReference, IEnumerable<ContactItem> contactDetails, string bookingToReschedule);
Task<IEnumerable<string>> RemoveUnconfirmedProvisionalBookings();
Task DeleteProvisionalBooking(string reference, string site);
Task DeleteBooking(string reference, string site);
}

public interface IRolesStore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,13 @@ public async Task<IEnumerable<string>> RemoveUnconfirmedProvisionalBookings()

foreach (var indexDocument in indexDocuments)
{
await DeleteProvisionalBooking(indexDocument.Reference, indexDocument.Site);
await DeleteBooking(indexDocument.Reference, indexDocument.Site);
}

return indexDocuments.Select(i => i.Reference).ToList();
}

public async Task DeleteProvisionalBooking(string reference, string site)
public async Task DeleteBooking(string reference, string site)
{
await indexStore.DeleteDocument(reference, "booking_index");
await bookingStore.DeleteDocument(reference, site);
Expand Down

0 comments on commit a5387ad

Please sign in to comment.