From 1fe75532e5641525c3574b0c2f415e158da77207 Mon Sep 17 00:00:00 2001 From: Rish Date: Fri, 21 Aug 2020 16:11:24 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20incorrect=20stripe=20met?= =?UTF-8?q?hod=20for=20cancelling=20subscriptions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refs https://github.com/TryGhost/Ghost/issues/12150 - `destroy` method was using incorrect cancel subscriptions method - stripe.cancelStripeSubscriptions - which doesn't exist - Fixes call with intended method - `stripe.cancelAllSubscriptions` - to cancel all subscriptions --- ghost/members-api/lib/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/members-api/lib/users.js b/ghost/members-api/lib/users.js index a76f653985..4c8f74e369 100644 --- a/ghost/members-api/lib/users.js +++ b/ghost/members-api/lib/users.js @@ -19,7 +19,7 @@ module.exports = function ({ } if (stripe && options.cancelStripeSubscriptions) { - await stripe.cancelStripeSubscriptions(member); + await stripe.cancelAllSubscriptions(member); } return Member.destroy({