Skip to content

Commit

Permalink
fix deathsByDay in json format
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarkarira committed Mar 18, 2020
1 parent c8dedf1 commit 1a97543
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/byCountry.js
Expand Up @@ -43,7 +43,7 @@ function getDataByState(confirmed, deaths, recovered) {
deaths: deathsMap[mapKey].latest,
confirmedByDay: helpers.historyObjToArr(confirmedMap[mapKey].history),
recoveredByDay: helpers.historyObjToArr(recoveredMap[mapKey].history),
deathsByDay: helpers.historyObjToArr(recoveredMap[mapKey].history),
deathsByDay: helpers.historyObjToArr(deathsMap[mapKey].history),
lastUpdated,
};
}
Expand Down
2 changes: 1 addition & 1 deletion lib/corona.js
Expand Up @@ -42,7 +42,7 @@ function getDataByCountry(confirmed, deaths, recovered) {
deaths: deathsMap[mapKey].latest,
confirmedByDay: helpers.historyObjToArr(confirmedMap[mapKey].history),
recoveredByDay: helpers.historyObjToArr(recoveredMap[mapKey].history),
deathsByDay: helpers.historyObjToArr(recoveredMap[mapKey].history),
deathsByDay: helpers.historyObjToArr(deathsMap[mapKey].history),
lastUpdated,
};
} else {
Expand Down

0 comments on commit 1a97543

Please sign in to comment.