mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-18 02:21:47 -05:00
Inverted active check for subscriptions
no-issue This is more explicit about what we consider to be an active subscription
This commit is contained in:
parent
5a17327a93
commit
5a0adce65d
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ module.exports = class StripePaymentProcessor {
|
|||
const subscriptions = await this.getSubscriptions(member);
|
||||
|
||||
return subscriptions.filter((subscription) => {
|
||||
return subscription.status !== 'cancelled' && subscription.status !== 'unpaid';
|
||||
return subscription.status === 'active' || subscription.status === 'trialing';
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue