From 94ef530b3cfb1d26abde8df074573962bd51fc65 Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Mon, 9 Dec 2019 15:55:37 +0200 Subject: [PATCH] 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 --- ghost/members-api/lib/stripe/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/members-api/lib/stripe/index.js b/ghost/members-api/lib/stripe/index.js index 5a59e72c08..3dcd0691ca 100644 --- a/ghost/members-api/lib/stripe/index.js +++ b/ghost/members-api/lib/stripe/index.js @@ -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) => {