fix(aviation): keep NOTAM seed freshness updated on empty responses (#1523)

This commit is contained in:
Elie Habib
2026-03-13 11:21:14 +04:00
committed by GitHub
parent fb3c48e077
commit 669c118b82

View File

@@ -1912,6 +1912,7 @@ async function seedNotamClosures() {
const t0 = Date.now();
const notams = await fetchIcaoNotams();
if (notams.length === 0) {
await upstashSet('seed-meta:aviation:notam', { fetchedAt: Date.now(), recordCount: 0 }, 604800);
console.log('[NOTAM-Seed] No NOTAMs received — preserving existing cache');
return;
}