Ledger and Telegram name linked positions as '<owner> (position)' instead of a bare member number

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-10-18 06:56:23 -05:00
parent a416f2f9c9
commit f4b3058a58
+5
View File
@@ -146,6 +146,11 @@ const J = {
const out = {};
for (const a of Object.values(this.db.byEmail))
if (a.username && a.memberId && ids.includes(a.memberId)) out[a.memberId] = a.username;
// linked positions (Qualified Start wallets) read as their owner (2026-10-18: the ledger showed "member #353")
for (const p of Object.values(this.db.positions || {})) {
if (!p.memberId || out[p.memberId] || !ids.includes(p.memberId)) continue;
const o = this.db.byEmail[p.email]; if (o && o.username) out[p.memberId] = o.username + ' (position)';
}
return out;
},
async listByReferrer(refs) {