diff --git a/api.planx.uk/modules/gis/service/digitalLand.ts b/api.planx.uk/modules/gis/service/digitalLand.ts index fe5ba5eca2..7c604dda1b 100644 --- a/api.planx.uk/modules/gis/service/digitalLand.ts +++ b/api.planx.uk/modules/gis/service/digitalLand.ts @@ -107,9 +107,8 @@ async function go( if (res && res.count > 0 && res.entities) { res.entities.forEach((entity: { dataset: any }) => { // get the planx variable that corresponds to this entity's 'dataset', should never be null because our initial request is filtered on 'dataset' - const key = Object.keys(baseSchema).find( - (key) => - baseSchema[key]["digital-land-datasets"]?.includes(entity.dataset), + const key = Object.keys(baseSchema).find((key) => + baseSchema[key]["digital-land-datasets"]?.includes(entity.dataset), ); // because there can be many digital land datasets per planx variable, check if this key is already in our result if (key && Object.keys(formattedResult).includes(key)) { @@ -268,11 +267,8 @@ async function go( .then((responses) => { responses.forEach((response: any) => { // get the planx variable that corresponds to this 'dataset', should never be null because we only requested known datasets - const key = Object.keys(baseSchema).find( - (key) => - baseSchema[key]["digital-land-datasets"]?.includes( - response.dataset, - ), + const key = Object.keys(baseSchema).find((key) => + baseSchema[key]["digital-land-datasets"]?.includes(response.dataset), ); if (key) metadata[key] = response; });