We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da18f4e commit a503378Copy full SHA for a503378
telnet.js
@@ -20,8 +20,6 @@ async function fetchByCountry(query) {
20
// empty, country, history, chartType
21
const [_x, country, history, chartType] = query.split('/'),
22
countryData = await axios.get(`${apiBaseURL}/countries/${country}`),
23
- all = await axios.get(`${apiBaseURL}/all`),
24
- u = all.data,
25
d = countryData.data;
26
27
if (_x.length > 0) throw "Invalid query format. Must Start with \/"
@@ -34,15 +32,15 @@ async function fetchByCountry(query) {
34
32
d.country, d.cases, d.todayCases,
35
33
d.deaths, d.todayDeaths, d.recovered,
36
d.active, d.critical, d.casesPerOneMillion,
37
- u.updated, h, chartType || 'cases'
+ d.updated, h, chartType || 'cases'
38
)
39
}
40
41
return covid19.covid19countrytracker(
42
43
44
45
- u.updated
+ d.updated
46
);
47
48
0 commit comments