collab: Treat trialing subscriptions as active (#28992)

This PR makes it so billing subscriptions in the `trialing` state are
considered `active`.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-04-17 14:19:34 -04:00 committed by GitHub
parent ba588161d9
commit 58d8b91131
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -119,8 +119,15 @@ impl Database {
.filter(
Condition::all()
.add(
billing_subscription::Column::StripeSubscriptionStatus
.eq(StripeSubscriptionStatus::Active),
Condition::any()
.add(
billing_subscription::Column::StripeSubscriptionStatus
.eq(StripeSubscriptionStatus::Active),
)
.add(
billing_subscription::Column::StripeSubscriptionStatus
.eq(StripeSubscriptionStatus::Trialing),
),
)
.add(billing_subscription::Column::Kind.is_not_null()),
)