disease-sh/node-api

yesterday data issue

Closed this issue · 5 comments

will you update the api?
async yesterday(country, sort) { if (country) { return node_fetch_1.default(`${this.baseURL}/v2/countries/${country}?yesterday=true`).then(json); } else if (!country && sort) { return node_fetch_1.default(`${this.baseURL}/v2/countries/${country}?yesterday=true${sort}`).then(json); } return node_fetch_1.default(`${this.baseURL}/v2/all?yesterday=true`).then(json); }
I changed urls in index.js file which in node_modules/novelcovid and it worked. i just looked at the NovelCOVID github source.

pujux commented

yes there will be an update asap! current maintainers cant right now, i am working on it

https://corona.lmao.ninja/v2/yesterday cannot get , that's was the issue I think...was that removed ? @puf17640

pujux commented

well, the code that is in here right now is fixed yes, but the package on npm isnt yet, we will have to wait for either @Anish-Shobith or @apollyon600 to publish to npm

I am on it currently , i fixed a lot of stuff and some breaking changes , got few more methods to work on and i will be pushing changes asap

fixed it