From 58f0efa5c8a1c51a103ed86b3d1c00058029e659 Mon Sep 17 00:00:00 2001 From: Anthony Britton Date: Thu, 30 Nov 2023 10:20:33 +0000 Subject: [PATCH] rename client bean function --- .../uk/gov/justice/digital/hmpps/config/RestClientConfig.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/custody-key-dates-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/config/RestClientConfig.kt b/projects/custody-key-dates-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/config/RestClientConfig.kt index bdcbbac52f..5dfc875b2a 100644 --- a/projects/custody-key-dates-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/config/RestClientConfig.kt +++ b/projects/custody-key-dates-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/config/RestClientConfig.kt @@ -11,7 +11,7 @@ import uk.gov.justice.digital.hmpps.integrations.prison.PrisonApiClient class RestClientConfig(private val hmppsAuthClient: RestClient) { @Bean - fun courtCaseClient(@Value("\${integrations.prison-api.url}") prisonApiBaseUrl: String) = + fun prisonApiClient(@Value("\${integrations.prison-api.url}") prisonApiBaseUrl: String) = createClient( hmppsAuthClient.mutate() .baseUrl("$prisonApiBaseUrl/api/bookings")