Skip to content

Commit

Permalink
Added GB to places JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
afoeder committed Jun 12, 2024
1 parent 71e51fe commit 008293a
Show file tree
Hide file tree
Showing 2 changed files with 1,921 additions and 2 deletions.
4 changes: 2 additions & 2 deletions amex-dining-credit/fetch-places.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function amexMerchantsToPlaces(amexApiMerchants) {
}

const placesPromises =
["DE"].map(async function(country) {
["GB"].map(async function(country) {
console.info("Fetching country "+country);
const amexApiMerchants = await (
await fetch(
Expand All @@ -44,7 +44,7 @@ const placesPromises =
return {country: country, places: amexMerchantsToPlaces(amexApiMerchants)};
});

const places = {};
const places = require("./places.json");

Promise.all(placesPromises).then(placesInCountries => {
placesInCountries.forEach(placesPerCountry => {
Expand Down
Loading

0 comments on commit 008293a

Please sign in to comment.