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:
parent
ba588161d9
commit
58d8b91131
1 changed files with 9 additions and 2 deletions
|
@ -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()),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue