.countries(null, 'sort by'); Is not working
Closed this issue · 4 comments
Joralmo commented
I have the following code
app.get('/countries', async (req, res) => {
const { sort } = req.query;
let countries;
if (sort) {
countries = await track.countries();
} else {
countries = await track.countries(null, sort);
}
res.send(countries);
});
But the answer is always the same, even if I send the sort parameter
anishshobithps commented
the sort by sorts according to cases, todayCases , deaths, todayDeaths , etc ... not by by country names
sayeduzzamancuet commented
Why these methods are not working suddenly? It was working before
anishshobithps commented
Just got the issue , pushing changes soon!
anishshobithps commented
Fixed it! in the new release , reopen if the issue continues