Fixed bug with reapplying complimentary subscriptions

no-issue

We should have been checking for the existence of active subscriptions
in order to update them
This commit is contained in:
Fabien O'Carroll 2021-01-25 13:19:24 +00:00
parent 40ef97e6d3
commit 77b328bf11

View File

@ -299,7 +299,7 @@ module.exports = class MemberRepository {
}, options);
}
if (!subscriptions.length) {
if (!activeSubscriptions.length) {
const subscription = await this._stripeAPIService.createSubscription(stripeCustomer.id, complimentaryPlan.id);
await this.linkSubscription({