From e05fa6af3814a9100b501d277c7f20a3d7d5269e Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Thu, 26 Aug 2021 15:55:22 +0200 Subject: [PATCH] Fixed subscription handling to remove old products refs https://github.com/TryGhost/Team/issues/979 This bump to @tryghost/members-api includes a fix for handling a subscription updating to a new price. Previously we would add the new product to the member, but the old one would still be attached. Now we check that there are no other active subscriptions for the product associated with the old price, and remove it. --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index c402db2b0c..b49b5cbb2f 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,7 @@ "@tryghost/limit-service": "0.6.1", "@tryghost/logging": "0.1.5", "@tryghost/magic-link": "1.0.10", - "@tryghost/members-api": "1.27.2", + "@tryghost/members-api": "1.27.3", "@tryghost/members-csv": "1.1.5", "@tryghost/members-importer": "0.3.1", "@tryghost/members-ssr": "1.0.11", diff --git a/yarn.lock b/yarn.lock index e18d47cf07..b342b4e2eb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -908,10 +908,10 @@ jsonwebtoken "^8.5.1" lodash "^4.17.15" -"@tryghost/members-api@1.27.2": - version "1.27.2" - resolved "https://registry.yarnpkg.com/@tryghost/members-api/-/members-api-1.27.2.tgz#2c3731d63a3ea01ed50a9ce78e0e8aaac46c7b55" - integrity sha512-mzNRmLKOzyKXooNL5Z6S91zpLozdlJDAsY7SJHz13ETeksRy6om3jhDz696WCNmiIKS3yArRMi9dzEwS2KbGzQ== +"@tryghost/members-api@1.27.3": + version "1.27.3" + resolved "https://registry.yarnpkg.com/@tryghost/members-api/-/members-api-1.27.3.tgz#04e32e785252131bdece6e9a759de0bc06d1c993" + integrity sha512-NnzZMJBPsifx35kf04VCjJTJO5KmH1qWky0/TchQOlQhfrZpNuA72sykVdFc/IPGseRGCu6ANMRUKBW8N8X/9w== dependencies: "@tryghost/debug" "^0.1.2" "@tryghost/errors" "^0.2.9"