Skip to content

Commit

Permalink
chore: handle new game dictionary response
Browse files Browse the repository at this point in the history
  • Loading branch information
andipaetzold committed Jun 4, 2024
1 parent 83c7f99 commit bb29ab6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/helpers/update-data.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export async function updateData() {
"https://www.zwift.com/zwift-web-pages/gamedictionary"
);
const responseData = await response.json();
delete responseData.GameDictionary["$"];
const responseExtendedData = Object.fromEntries(
Object.entries(responseData.GameDictionary).map(([key1, value1]) => [
key1,
Expand Down

0 comments on commit bb29ab6

Please sign in to comment.