Refill notices: Wired Wednesday in the bonus ladder + deploy-overlap claims (Fuel Your Offers stage 1, Marty approved 2026-10-24). The bonus block now lists Five Dollar Friday AND Wired Wednesday (from their live settings: wednesdayPromo, wednesdayBonusPct 25, wednesdayMinCents 2000, Central time), and takes the member's refuel-streak line from a streakLine(owner) hook (filled in stage 2). Every send is claimed in event_marks first, so the two app copies of a deploy never both email a person. qa/refill.test.cjs (copy, settings, hook, two copies) + run.sh fuel mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-10-24 05:12:38 -05:00
parent 7cadeaa2d9
commit 61c0c52c3b
4 changed files with 111 additions and 9 deletions
+1 -1
View File
@@ -570,7 +570,7 @@ async function boot() {
// Campaign refill notices: an advertiser is told when an ad is nearly out and when it has stopped,
// with the bonus ladder in the same message, and every send is watched for what they did next.
refill.init({
dataDir: DATA_DIR, siteConfig, ads, accounts, chain, mailer, drip,
dataDir: DATA_DIR, siteConfig, ads, accounts, chain, mailer, drip, marks,
creditsFor: async email => { const v = await adminMember.view(email); return (v && v.credits && v.credits.available) || 0; },
message: async (to, subject, html) => { await messages.deliver(1, ADMIN_EMAIL || 'house@instantadpay.com', [to], subject, html, 'notice'); },
});