From 4aa78305d35cfae3d9fbd7c9e3ad25dc2ef4b4c1 Mon Sep 17 00:00:00 2001 From: you Date: Fri, 20 Mar 2026 07:32:46 +0000 Subject: [PATCH] feat: backfill observer names from ADVERT pubkey cross-reference --- server.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server.js b/server.js index 4388457b..cd22807c 100644 --- a/server.js +++ b/server.js @@ -471,6 +471,11 @@ for (const source of mqttSources) { cache.invalidate('node:' + p.pubKey); cache.invalidate('health:' + p.pubKey); cache.invalidate('bulk-health'); + + // Cross-reference: if this node's pubkey matches an observer, backfill observer name + if (p.name && p.pubKey) { + db.updateObserverStatus({ id: p.pubKey, name: p.name }); + } } if (observerId) {