mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Renamed destroyStripeSubscriptions to cancelStripeSubscriptions
no-issue Destroy is terminology we usually use for the model layer and was a little confusing without context, this method is used in one place so it's a low effort cleanup with minimal repercussions
This commit is contained in:
parent
8137d5aa72
commit
b435d6a8c1
1 changed files with 3 additions and 3 deletions
|
@ -61,7 +61,7 @@ module.exports = function ({
|
|||
return await stripe.getActiveSubscriptions(member);
|
||||
}
|
||||
|
||||
async function destroyStripeSubscriptions(member) {
|
||||
async function cancelStripeSubscriptions(member) {
|
||||
if (stripe) {
|
||||
await stripe.cancelAllSubscriptions(member);
|
||||
}
|
||||
|
@ -119,7 +119,7 @@ module.exports = function ({
|
|||
return;
|
||||
}
|
||||
|
||||
await destroyStripeSubscriptions(member);
|
||||
await cancelStripeSubscriptions(member);
|
||||
|
||||
return deleteMember(data);
|
||||
}
|
||||
|
@ -190,7 +190,7 @@ module.exports = function ({
|
|||
getStripeSubscriptions,
|
||||
setComplimentarySubscription,
|
||||
cancelComplimentarySubscription,
|
||||
destroyStripeSubscriptions,
|
||||
cancelStripeSubscriptions,
|
||||
getStripeCustomer,
|
||||
linkStripeCustomer
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue