feat: backfill observer names from ADVERT pubkey cross-reference

This commit is contained in:
you
2026-03-20 07:32:46 +00:00
parent 8659cda7b7
commit 4aa78305d3
+5
View File
@@ -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) {