Skip to content

Commit

Permalink
MAP-1931 call nomis mapping on a different endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
GurnankCheema committed Dec 4, 2024
1 parent 0a03641 commit 4e1eb12
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion integration-tests/mockApis/nomisMappingApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
return stubFor({
request: {
method: 'GET',
urlPattern: `/nomis-mapping/mapping/locations/nomis/${nomisLocationId}`,
urlPattern: `/nomis-mapping/api/locations/nomis/${nomisLocationId}`,
},
response: {
status: 200,
Expand Down
2 changes: 1 addition & 1 deletion server/data/nomisMappingClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ export default class NomisMappingClient {

async getDpsLocationMappingUsingNomisLocationId(nomisLocationId: number): Promise<LocationMapping> {
logger.info(`Nomis mapping api client getting DPS location details using this nomisLocationId: ${nomisLocationId}`)
return this.restClient.get({ path: `/mapping/locations/nomis/${nomisLocationId}` })
return this.restClient.get({ path: `/api/locations/nomis/${nomisLocationId}` })
}
}
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"moduleResolution": "node",
"outDir": "./dist",
"sourceMap": true,
"suppressImplicitAnyIndexErrors": true,
"skipLibCheck": true,
"noEmit": false,
"allowJs": true,
Expand Down

0 comments on commit 4e1eb12

Please sign in to comment.