Skip to content

Commit faf7ba7

Browse files
committed
Hotfix
1 parent 80d036b commit faf7ba7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cron/data-providers/baselab.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ module.exports = async function () {
4343
const totalRow = data.shift()
4444
const total = {
4545
infections: totalRow[1],
46-
activeCases: totalRow[2],
47-
deaths: totalRow[3],
46+
activeCases: totalRow[3],
47+
deaths: totalRow[2],
4848
recovered: totalRow[4],
4949
mortalityRate: totalRow[5],
5050
revoveryRate: totalRow[6],
@@ -53,10 +53,11 @@ module.exports = async function () {
5353

5454
for (const row of data) {
5555
const c = shared.getCountryCode(row[0])
56+
console.log(row)
5657
res[c] = {
5758
infections: row[1],
58-
activeCases: row[2],
59-
deaths: row[3],
59+
activeCases: row[3],
60+
deaths: row[2],
6061
recovered: row[4],
6162
mortalityRate: row[5],
6263
revoveryRate: row[6],

0 commit comments

Comments
 (0)