mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-13 10:55:58 +03: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
@ -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…
Reference in New Issue
Block a user