mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-18 02:21:47 -05:00
Fixed bug in cancelAllSubscriptions
no-issue We filter out previously cancelled subscriptions, but used the wrong string "cancelled" instead of "canceled" https://stripe.com/docs/billing/lifecycle#subscription-states
This commit is contained in:
parent
231218c4e6
commit
94ef530b3c
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ module.exports = class StripePaymentProcessor {
|
|||
const subscriptions = await this.getSubscriptions(member);
|
||||
|
||||
const activeSubscriptions = subscriptions.filter((subscription) => {
|
||||
return subscription.status !== 'cancelled';
|
||||
return subscription.status !== 'canceled';
|
||||
});
|
||||
|
||||
await Promise.all(activeSubscriptions.map((subscription) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue