mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05: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
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ module.exports = function ({
|
|||
}
|
||||
|
||||
if (stripe && options.cancelStripeSubscriptions) {
|
||||
await stripe.cancelStripeSubscriptions(member);
|
||||
await stripe.cancelAllSubscriptions(member);
|
||||
}
|
||||
|
||||
return Member.destroy({
|
||||
|
|
Loading…
Add table
Reference in a new issue