diff --git a/accounts.js b/accounts.js index d91b3c4..08604d0 100644 --- a/accounts.js +++ b/accounts.js @@ -501,7 +501,7 @@ async function sponsorOf(email) { let s = null; try { s = await byCode(ref); } catch (e) {} if (!s) { try { s = await byUsername(ref); } catch (e) {} } - if (!s && /^\d+$/.test(ref)) { try { s = await byMemberId(Number(ref)); } catch (e) {} } + if (!s && /^\d+$/.test(ref)) { try { s = await impl().byMemberId(Number(ref)); } catch (e) {} } // a numeric ref is a member id; byMemberId exists only on the exports object, so the bare name threw and was swallowed (2026-11-17) return s || null; } // is `memberEmail` anywhere in `sponsorEmail`'s downline (to `depth` levels)?