Skip to content

Fix subscription display and enable database migrations - #369

Merged
bokelley merged 2 commits into
mainfrom
bokelley/fix-member-subscriptions
Dec 27, 2025
Merged

bokelley merged 2 commits into
mainfrom
bokelley/fix-member-subscriptions

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

Fixed subscription display issues in admin member list and prospects page by using the actual subscription_status column from the database instead of inferring it. Also enabled automatic migrations on Fly.io startup to prevent future skipped migrations.

Changes

  • Admin Members API: Query subscription_status directly from database (populated by Stripe webhooks) instead of inferring from amount/period_end fields
  • Admin Members UI: Fixed CSS class bug that stripped underscores from status names and added support for 'unpaid' status
  • Production Deployments: Enable RUN_MIGRATIONS=true in fly.toml to run pending migrations on startup

Testing

All existing tests pass. Changes are minimal and focused on using existing, correct data.

bokelley and others added 2 commits December 27, 2025 05:51
- Use subscription_status from database instead of inferring from amount/period_end
- Fix CSS class bug that stripped underscores from status names
- Add support for 'unpaid' subscription status
- Enable migrations to run on Fly.io startup via RUN_MIGRATIONS env var

Fixes member list showing incorrect subscription status and prospects page 500 errors.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
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.

1 participant