latest changes and fixes

This commit is contained in:
José Conde
2023-09-09 18:24:57 +02:00
parent 15f012530e
commit ed51c02ddc
18 changed files with 470 additions and 132 deletions

View File

@ -26,7 +26,6 @@ const getHistoricalSessions = async({ callsign, userId, from, to }) => {
},
params,
};
return await _requestHistoricalRecursive([], url, options);
};
@ -71,9 +70,7 @@ async function getIvaoPilotsNow(all = false) {
apiKey: process.env.IVAO_APIKEY,
},
};
const redisUsers = await RedisClient.getPair('users');
const pilots = await request(url, options);
// console.log('redisUsers :>> ', redisUsers);
return all ? pilots : pilots.filter(d => d.callsign.startsWith('LTS'));
}