diff --git a/integration-tests/mockApis/nomisMappingApi.js b/integration-tests/mockApis/nomisMappingApi.js index 98cbc7cd..cbde8acc 100644 --- a/integration-tests/mockApis/nomisMappingApi.js +++ b/integration-tests/mockApis/nomisMappingApi.js @@ -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, diff --git a/server/data/nomisMappingClient.ts b/server/data/nomisMappingClient.ts index 976356e1..da397054 100644 --- a/server/data/nomisMappingClient.ts +++ b/server/data/nomisMappingClient.ts @@ -7,6 +7,6 @@ export default class NomisMappingClient { async getDpsLocationMappingUsingNomisLocationId(nomisLocationId: number): Promise { 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}` }) } } diff --git a/tsconfig.json b/tsconfig.json index 2dd2a120..2a3051b9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,6 @@ "moduleResolution": "node", "outDir": "./dist", "sourceMap": true, - "suppressImplicitAnyIndexErrors": true, "skipLibCheck": true, "noEmit": false, "allowJs": true,