Coach mail only to members who have signed in here: carried-over shells get no nudges or weekly digests
Since the soft open (coachMail/memberWeeklyEmail on, 2026-10-10 11 AM CT) the hourly sweeps mailed carried InstantAdPay shells that never joined LinkSpin: 720 nudges and 690 digests by 8:30 AM CT 2026-10-11 (Harvey forwarded one). Both loops now skip accounts with no lastSeen. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -219,6 +219,7 @@ async function nudgeTick() {
|
||||
const all = await accounts.listAll(5000);
|
||||
for (const acct of all) {
|
||||
if (!acct.email || !acct.created || now - acct.created < STALL_DAYS * DAY) continue;
|
||||
if (!acct.lastSeen || acct.joinedVia === 'carried' && !acct.lastSeen) continue; // never signed in here (carried-over shells from InstantAdPay): no coaching mail, ever (2026-10-11: Harvey got a nudge for a site he never joined)
|
||||
const c = await describe(acct, now);
|
||||
if (!c.stalled) continue;
|
||||
const R = RUNGS[c.rung]; if (!R.mail) continue;
|
||||
@@ -236,7 +237,7 @@ async function nudgeTick() {
|
||||
let lbWeek = null; try { lbWeek = X.lb ? await X.lb().view('week') : null; } catch (e) {}
|
||||
let tankN = 0; try { tankN = X.tank ? (await X.tank.waiting()).length : 0; } catch (e) {}
|
||||
for (const acct of all) {
|
||||
if (!acct.email) continue;
|
||||
if (!acct.email || !acct.lastSeen) continue; // weekly mail only to people who have actually signed in here
|
||||
const lastD = await impl().lastDigest(acct.email);
|
||||
if (now - lastD < 7 * DAY) continue;
|
||||
if (now - (acct.lastSeen || acct.created || 0) > 45 * DAY) { await impl().setDigest(acct.email, now); continue; } // gone quiet for six weeks: leave them to the nudges
|
||||
|
||||
Reference in New Issue
Block a user