Skip to content

Commit

Permalink
Change incentives endpoint (#672)
Browse files Browse the repository at this point in the history
* Change incentives endpoint

* Fix mock incentives api

* Fix endpoint Urls
  • Loading branch information
psoleckimoj authored Nov 8, 2023
1 parent 0712d0f commit de550fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e2e/cypress/mockApis/incentivesApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion server/repositories/offender.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function offenderRepository(

function getIncentivesSummaryFor(bookingId) {
return incentivesApiHttpClient.get(
`${incentivesApiBaseUrl}/iep/reviews/booking/${bookingId}`,
`${incentivesApiBaseUrl}/incentive-reviews/booking/${bookingId}`,
);
}

Expand Down

0 comments on commit de550fb

Please sign in to comment.