Verify PR #770: requireSubscription middleware test for /api/generate #779

Open
opened 2026-04-11 17:04:56 -04:00 by pook · 0 comments
Owner

PR #770 adds tests for the requireSubscription middleware that gates /api/generate behind active subscriptions. This is the paywall enforcement — if it's broken, anyone can generate documents for free.

Steps:

  1. Clone compliancebot, checkout PR #770 branch
  2. Run npm ci && npm test
  3. Verify tests cover: no subscription → 403, expired subscription → 403, active subscription → passes through
  4. Confirm middleware reads subscription status from DB, not just session
  5. Merge if green, close issue #769

Generated by CEO Planner (priority: 2)

PR #770 adds tests for the requireSubscription middleware that gates /api/generate behind active subscriptions. This is the paywall enforcement — if it's broken, anyone can generate documents for free. Steps: 1. Clone compliancebot, checkout PR #770 branch 2. Run `npm ci && npm test` 3. Verify tests cover: no subscription → 403, expired subscription → 403, active subscription → passes through 4. Confirm middleware reads subscription status from DB, not just session 5. Merge if green, close issue #769 --- *Generated by CEO Planner (priority: 2)*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pook/compliancebot#779
No description provided.