Skip to content

Commit

Permalink
utf-8 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcoombs2000 committed Mar 29, 2024
1 parent 3946b08 commit fe7bbe6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ const pollVatsim = async () => {
await PilotOnline.deleteMany({}).exec();

console.log("Fetching data from VATSIM.");
const {vatsimdata} = await axios.get('https://data.vatsim.net/v3/vatsim-data.json');
const data = vatsimdata.toString('utf-8');
const {vatsimd} = await axios.get('https://data.vatsim.net/v3/vatsim-data.json',{responseType: 'arraybuffer' });
const data = vatsimd.data.toString('utf-8');
// PILOTS

const dataPilots = [];
Expand Down

0 comments on commit fe7bbe6

Please sign in to comment.