fix(domain): count unverified holders in tier slot usage (BUNYIP-105) #239
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/bunyip-105-count-unverified-tier-slots"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
count_tier_assignments filtered on email_verified = true, so unverified lifetime / early_adopter users read as 0. That let unverified lifetimes bypass the configured cap and made the admin Tier Settings page under-report slot usage, contradicting the function's own BUNYIP-96 doc-comment.
Drop the email_verified predicate (keep deleted_at IS NULL): an active lifetime / early_adopter subscription occupies a slot regardless of email-verification state. Extract the SQL into a named const so a --lib unit test can assert the predicate stays dropped without a live database.
#BUNYIP-105