Skip to content

Commit

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

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

const dataPilots = [];
Expand Down

0 comments on commit bbe678d

Please sign in to comment.