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 fd4ad7a commit 85bf3e4Copy full SHA for 85bf3e4
lib/api.js
@@ -22,6 +22,7 @@ exports.getCoronaData = async () => {
22
const cache = myCache.get(CORONA_ALL_KEY);
23
24
if (cache) {
25
+ console.log('cache', CORONA_ALL_KEY);
26
return cache;
27
}
28
const result = await axios('https://coronavirus-tracker-api.herokuapp.com/all');
@@ -47,7 +48,7 @@ exports.getWorldoMetersData = async (countryCode = 'ALL') => {
47
48
console.log('cache', key);
49
50
- const result = await axios('https://corona.lmao.ninja/countries');
51
+ const result = await axios('https://corona.lmao.ninja/countries?sort=cases');
52
if (!result || !result.data) {
53
throw new Error('WorldoMeters Source API failure');
54
0 commit comments