🐛 Fixed incorrect stripe method for cancelling subscriptions

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
This commit is contained in:
Rish 2020-08-21 16:11:24 +05:30
parent 838ec6bb26
commit 1fe75532e5

View File

@ -19,7 +19,7 @@ module.exports = function ({
}
if (stripe && options.cancelStripeSubscriptions) {
await stripe.cancelStripeSubscriptions(member);
await stripe.cancelAllSubscriptions(member);
}
return Member.destroy({