Skip to content

Commit

Permalink
run prettier with latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak committed Feb 2, 2024
1 parent 56dba3e commit e172b95
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions api.planx.uk/modules/gis/service/digitalLand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>

Check warning on line 110 in api.planx.uk/modules/gis/service/digitalLand.ts

View workflow job for this annotation

GitHub Actions / Run API Tests

Unexpected any. Specify a different type
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)) {
Expand Down Expand Up @@ -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;
});
Expand Down

0 comments on commit e172b95

Please sign in to comment.