mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -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);
|
return await stripe.getActiveSubscriptions(member);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function destroyStripeSubscriptions(member) {
|
async function cancelStripeSubscriptions(member) {
|
||||||
if (stripe) {
|
if (stripe) {
|
||||||
await stripe.cancelAllSubscriptions(member);
|
await stripe.cancelAllSubscriptions(member);
|
||||||
}
|
}
|
||||||
|
@ -119,7 +119,7 @@ module.exports = function ({
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
await destroyStripeSubscriptions(member);
|
await cancelStripeSubscriptions(member);
|
||||||
|
|
||||||
return deleteMember(data);
|
return deleteMember(data);
|
||||||
}
|
}
|
||||||
|
@ -190,7 +190,7 @@ module.exports = function ({
|
||||||
getStripeSubscriptions,
|
getStripeSubscriptions,
|
||||||
setComplimentarySubscription,
|
setComplimentarySubscription,
|
||||||
cancelComplimentarySubscription,
|
cancelComplimentarySubscription,
|
||||||
destroyStripeSubscriptions,
|
cancelStripeSubscriptions,
|
||||||
getStripeCustomer,
|
getStripeCustomer,
|
||||||
linkStripeCustomer
|
linkStripeCustomer
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue