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) {