ADSB offline fixes?

This commit is contained in:
2026-07-04 00:38:58 -04:00
parent 3e44dbb8eb
commit 0a722edcc6

View File

@@ -241,8 +241,8 @@ export async function enrichAircraft(a) {
if(noRecord.includes(icao)) return { icao, ...a, type: 'unknown' };
const hexDbPromise = fetchHexDb(icao);
const scrapePromise = scrapeHexDatabase(icao);
let found = await hexDbPromise;
if(!found) found = await scrapePromise;
let found = await hexDbPromise.catch(() => {});
if(!found) found = await scrapePromise.catch(() => {});
if(!found) {
noRecord.push(icao);
return { icao, ...a, type: 'unknown' };