From 1b65a8619cf319ecdf5c1cb635a897530c88ad42 Mon Sep 17 00:00:00 2001 From: ztimson Date: Thu, 25 Jun 2026 11:13:47 -0400 Subject: [PATCH] ADSB enrichment --- server/src/adsb.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/adsb.mjs b/server/src/adsb.mjs index ef2aa7b..270a99c 100644 --- a/server/src/adsb.mjs +++ b/server/src/adsb.mjs @@ -46,7 +46,7 @@ async function importAircraftDb() { const insert = db.prepare(`INSERT OR REPLACE INTO aircraft(icao, reg, type_code, flags, desc) VALUES (?,?,?,?,?)`); const run = db.transaction((rows) => { for(const [icao, a] of Object.entries(rows)) { - insert.run(icao.toUpperCase().padStart(6, '0'), reg || null, type_code || null, flags || null, desc || null); + insert.run(icao.toUpperCase().padStart(6, '0'), a.r || null, a.t || null, a.f || null, a.desc || null); total++; } });