From 93dce28ccad9c16287d0b08495aee995e4c464ed Mon Sep 17 00:00:00 2001 From: ztimson Date: Sat, 27 Jun 2026 17:05:59 -0400 Subject: [PATCH] ADSB backfill fix? --- server/src/adsb.mjs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/server/src/adsb.mjs b/server/src/adsb.mjs index 0be34a6..bd657cc 100644 --- a/server/src/adsb.mjs +++ b/server/src/adsb.mjs @@ -233,18 +233,8 @@ export async function enrichAircraft(a) { // 2. Race the two external sources if(noRecord.includes(icao)) return { icao, ...a, type: 'unknown' }; - let found = await Promise.any([ - fetchHexDb(icao).then(resp => { - if(resp) console.log(`Source1: ${icao}`) - return resp; - }), - scrapeHexDatabase(icao).then(resp => { - if(resp) console.log(`Source2: ${icao}`) - return resp; - }), - ]).catch(() => null); + let found = scrapeHexDatabase(icao); if(!found) { - console.log(`Not Found: ${icao}`) noRecord.push(icao); return { icao, ...a, type: 'unknown' }; }