From 4a029112dae809cf0909178e1ddf19c2e7faacc3 Mon Sep 17 00:00:00 2001 From: James Southern Date: Fri, 29 Mar 2024 12:09:04 +0000 Subject: [PATCH] remove DC Api skipping on DE30GU postcode for debug --- .../constituency_lookup/[postcode]/[[...address]]/route.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/api/constituency_lookup/[postcode]/[[...address]]/route.ts b/app/api/constituency_lookup/[postcode]/[[...address]]/route.ts index 152fa2e..99a70bf 100644 --- a/app/api/constituency_lookup/[postcode]/[[...address]]/route.ts +++ b/app/api/constituency_lookup/[postcode]/[[...address]]/route.ts @@ -152,10 +152,7 @@ export async function GET( }; //see if DC api will give us anything useful - //TODO remove this if statement, (here so we can test DC API failure!) - let dc_data = null; - if (normalizedPostcode != "DE30GU") - dc_data = await fetch_dc_api(normalizedPostcode, params.address?.[0]); + let dc_data = await fetch_dc_api(normalizedPostcode, params.address?.[0]); //const dc_data = await fetch_dc_api(normalizedPostcode, params.address?.[0]);