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:
Fabien O'Carroll 2019-12-09 15:55:37 +02:00 committed by GitHub
parent 231218c4e6
commit 94ef530b3c

View File

@ -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) => {