From 99791293c70593a126243d932dd75b98f4754ff6 Mon Sep 17 00:00:00 2001 From: GCheema <50441412+GurnankCheema@users.noreply.github.com> Date: Wed, 4 Dec 2024 13:40:06 +0000 Subject: [PATCH] MAP-1931 call nomis mapping on a different endpoint (#739) --- integration-tests/mockApis/nomisMappingApi.js | 2 +- server/data/nomisMappingClient.ts | 2 +- tsconfig.json | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) 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,