mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
🐛 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:
parent
838ec6bb26
commit
1fe75532e5
@ -19,7 +19,7 @@ module.exports = function ({
|
||||
}
|
||||
|
||||
if (stripe && options.cancelStripeSubscriptions) {
|
||||
await stripe.cancelStripeSubscriptions(member);
|
||||
await stripe.cancelAllSubscriptions(member);
|
||||
}
|
||||
|
||||
return Member.destroy({
|
||||
|
Loading…
Reference in New Issue
Block a user