From 85909e550b5a367c6130d43f57fa7fd892d7dd1d Mon Sep 17 00:00:00 2001 From: ztimson Date: Sat, 27 Jun 2026 16:26:34 -0400 Subject: [PATCH] Fix aircraft db import --- server/src/adsb.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/adsb.mjs b/server/src/adsb.mjs index 37906d8..ed8b818 100644 --- a/server/src/adsb.mjs +++ b/server/src/adsb.mjs @@ -116,7 +116,7 @@ export async function initAircraftDb() { }); insertMany(csv.map(row => ({ - icao: (row.icao || '').toUpperCase(), + icao: (row.icao24 || '').toUpperCase(), built: row.built || null, categoryDescription: row.categoryDescription || null, country: row.country || null, @@ -277,7 +277,7 @@ export async function enrichAircraft(a) { categoryDescription = COALESCE(excluded.categoryDescription, categoryDescription), class = COALESCE(excluded.class, class) `).run({ - icao: icao, + icao, registration: merged.registration || null, manufacturer: merged.manufacturer || null, aircraft: merged.aircraft || null,