Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
chore: change to fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchis committed May 1, 2024
1 parent fee7ea0 commit 119b2e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/infected.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export function getNewInfected () {
}

console.log('FETCH NEW DATA', process.env.NEW_INFECTED_URL)
return axios.get(process.env.NEW_INFECTED_URL)
.then(({ data }) => data)
return fetch(process.env.NEW_INFECTED_URL)
.then((response) => response.json())
.then(({ records }) => ({
infected: extractInfected(records),
zones: extractZones(records)
Expand Down

0 comments on commit 119b2e4

Please sign in to comment.