Skip to content

Add renewal grace period for auto-renewing memberships#3698

Merged
IanPhilips merged 1 commit intomainfrom
fix/membership-renewal-gap
Feb 24, 2026
Merged

Add renewal grace period for auto-renewing memberships#3698
IanPhilips merged 1 commit intomainfrom
fix/membership-renewal-gap

Conversation

@todwadd
Copy link
Collaborator

@todwadd todwadd commented Feb 20, 2026

The renewal scheduler runs once daily at 8 AM UTC, but getUserSupporterTier() used a strict expiration check. This meant auto-renewing members could appear as lapsed for up to ~24 hours between their expiry and the next scheduler run — even though the scheduler would charge them and renew normally.

This adds a 25-hour grace period to the tier check functions so that memberships with autoRenew=true are still treated as active while awaiting the scheduler. This is purely a read-time interpretation — no database or scheduler changes. The scheduler still renews from NOW(), so users aren't getting extra time; they just don't lose benefits during the gap.

The renewal scheduler runs once daily at 8 AM UTC, but
getUserSupporterTier() used a strict expiration check. This meant
auto-renewing members could appear as lapsed for up to ~24 hours
between their expiry and the next scheduler run — even though the
scheduler would charge them and renew normally.

This adds a 25-hour grace period to the tier check functions so that
memberships with autoRenew=true are still treated as active while
awaiting the scheduler. This is purely a read-time interpretation —
no database or scheduler changes. The scheduler still renews from
NOW(), so users aren't getting extra time; they just don't lose
benefits during the gap.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Feb 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dev Ready Ready Preview, Comment Feb 20, 2026 5:27pm
prod Ready Ready Preview, Comment Feb 20, 2026 5:27pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Ignored Ignored Feb 20, 2026 5:27pm

Request Review

@todwadd todwadd requested a review from mantikoros February 20, 2026 17:22
@todwadd todwadd requested a review from IanPhilips February 23, 2026 23:29
@IanPhilips IanPhilips merged commit 6a5240d into main Feb 24, 2026
6 checks passed
@IanPhilips IanPhilips deleted the fix/membership-renewal-gap branch February 24, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants