Admin spin links for the BTC4Hits import: POST /api/admin/rotations takes several destinations per link (urls[], fallback), GET lists a member's links + sources, DELETE removes one; tank waiting list reads every account (was the newest 2000)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Marty Bostick
2026-11-11 07:22:01 -06:00
parent 3436df38e5
commit 215af86e55
2 changed files with 16 additions and 3 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ const inTank = a => !a.sponsorRef && !a.memberId; // arrived with no sponsor (or
// waiting list: newest sign-in first so a live one is easy to spot
async function waiting() {
const all = await accounts.listAll(2000);
const all = await accounts.listAll(1e6); // was 2000: newest-first, so once the site passed 2000 accounts (BTC4Hits import 2026-11-11) older tank members fell off the list
return all.filter(a => inTank(a) && !remoteOpen(a.email)).map(a => ({ email: a.email, name: nameOf(a), username: a.username || null, joined: a.created, lastSeen: a.lastSeen || 0, wallet: !!a.address,
// wallet linked = ready to switch on payouts, the plain activation held for an adopter (24-hour clock, autoAssign after that)
opensAt: inGrace(a) ? graceEnd(a) : 0, // new sign-up: nobody can adopt them by hand before this (0 = open now)