From 77b328bf1137b7735eb486c60cd7c373d42ee24f Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Mon, 25 Jan 2021 13:19:24 +0000 Subject: [PATCH] Fixed bug with reapplying complimentary subscriptions no-issue We should have been checking for the existence of active subscriptions in order to update them --- ghost/members-api/lib/repositories/member/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/members-api/lib/repositories/member/index.js b/ghost/members-api/lib/repositories/member/index.js index b2f564cced..3bbcfb276f 100644 --- a/ghost/members-api/lib/repositories/member/index.js +++ b/ghost/members-api/lib/repositories/member/index.js @@ -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({