mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-04-25 17:14:57 +02:00
fix(aviation): keep NOTAM seed freshness updated on empty responses (#1523)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user