From de550fbf58c08b9338b68044135a5ff40e4260eb Mon Sep 17 00:00:00 2001 From: Paul Solecki <51918433+psoleckimoj@users.noreply.github.com> Date: Wed, 8 Nov 2023 09:21:39 +0000 Subject: [PATCH] Change incentives endpoint (#672) * Change incentives endpoint * Fix mock incentives api * Fix endpoint Urls --- e2e/cypress/mockApis/incentivesApi.js | 2 +- server/repositories/offender.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/cypress/mockApis/incentivesApi.js b/e2e/cypress/mockApis/incentivesApi.js index 651d05e65..cc200e3d4 100644 --- a/e2e/cypress/mockApis/incentivesApi.js +++ b/e2e/cypress/mockApis/incentivesApi.js @@ -16,7 +16,7 @@ const stub = (urlPattern, jsonBody) => }); const stubIncentives = incentives => - stub(`/incentivesapi/iep/reviews/booking/.*?`, incentives); + stub(`/incentivesapi/incentive-reviews/booking/.*?`, incentives); module.exports = { stubIncentives, diff --git a/server/repositories/offender.js b/server/repositories/offender.js index 3543b9f2e..64e91e908 100644 --- a/server/repositories/offender.js +++ b/server/repositories/offender.js @@ -26,7 +26,7 @@ function offenderRepository( function getIncentivesSummaryFor(bookingId) { return incentivesApiHttpClient.get( - `${incentivesApiBaseUrl}/iep/reviews/booking/${bookingId}`, + `${incentivesApiBaseUrl}/incentive-reviews/booking/${bookingId}`, ); }