ADSB backfill fix?

This commit is contained in:
2026-06-27 17:11:00 -04:00
parent 3750ece535
commit 2ccacf563c

View File

@@ -238,8 +238,11 @@ export async function enrichAircraft(a) {
let found = await hexDbPromise; let found = await hexDbPromise;
if(!found) found = await scrapePromise; if(!found) found = await scrapePromise;
if(!found) { if(!found) {
console.log(`not found: ${icao}`)
noRecord.push(icao); noRecord.push(icao);
return { icao, ...a, type: 'unknown' }; return { icao, ...a, type: 'unknown' };
} else {
console.log(`found: ${icao}`)
} }
// 3. Backfill manufacturer/model/engines from similar aircraft type in DB // 3. Backfill manufacturer/model/engines from similar aircraft type in DB