ahmadawais / corona-cli

🦠 Track the Coronavirus disease (COVID-19) in the command line. Worldwide for all countries, for one country, and the US States. Fast response time (< 100ms). https://x.com/MrAhmadAwais
https://NodeCLI.com
MIT License
1.85k stars 191 forks source link

Fix the country table not displaying numbers in the correct column #32

Closed mikeg1440 closed 4 years ago

mikeg1440 commented 4 years ago

Fixes #27

Description

In the getCountry.js file remove the unwanted countryInfo property causing the issue #27 from the api response data by destructuring the response api.data object into countryInfo and restData (representing the rest of the object data minus countryInfo), then passing the filtered restData to the let data = Object.values(restData) line.

ahmadawais commented 4 years ago

Thank you but I had already fixed it via filter across the files.

Update the CLI. It's been fixed already.

Go ahead and run this:

npm i -g corona-cli