1
0
Fork 0
mirror of synced 2024-09-11 23:16:00 +12:00

Updates to query files

queryLevelTransformerFunction
-adding eslint-disable-next-line

queryLevelTransformerFunctionWithData
-adding eslint-disable-next-line
-Removing const stateCode - not required
This commit is contained in:
Mitch-Budibase 2022-01-21 17:38:22 +00:00
parent 434460feb9
commit 6a0a92d7e1
2 changed files with 3 additions and 1 deletions

View file

@ -1,3 +1,4 @@
// eslint-disable-next-line
const breweries = data
const totals = {}

View file

@ -1,3 +1,4 @@
// eslint-disable-next-line
const breweries = data
const totals = {}
for (let brewery of breweries)
@ -25,6 +26,6 @@ const stateCodes =
}
const entries = Object.entries(totals)
return entries.map(([state, count]) =>
{const stateCode = stateCodes[state.toLowerCase()]
{stateCodes[state.toLowerCase()]
return { state, count, flag: "http://flags.ox3.in/svg/us/${stateCode}.svg" }
})