From 21c43f3b102ac4be95dbf4481cb2ccf3df8a5304 Mon Sep 17 00:00:00 2001 From: "Fabien \"egg\" O'Carroll" Date: Wed, 9 Feb 2022 11:37:49 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20500=20errors=20when=20ca?= =?UTF-8?q?ncelling=20subscriptions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit no-issue If Stripe subscriptions have manually been modified to contain more than one price, then cancellation would fail, as Ghost/Members relies on subscriptions only containing one price. This adds some handling so that we do not error when cancelling. --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 94e90e8e86..31e73aea30 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "@tryghost/limit-service": "1.0.9", "@tryghost/logging": "2.0.3", "@tryghost/magic-link": "1.0.17", - "@tryghost/members-api": "4.8.14", + "@tryghost/members-api": "4.8.15", "@tryghost/members-importer": "0.5.0", "@tryghost/members-offers": "0.10.6", "@tryghost/members-ssr": "1.0.19", diff --git a/yarn.lock b/yarn.lock index 9b4f54feea..3d2fdfa60a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1848,10 +1848,10 @@ "@tryghost/domain-events" "^0.1.6" "@tryghost/member-events" "^0.3.4" -"@tryghost/members-api@4.8.14": - version "4.8.14" - resolved "https://registry.yarnpkg.com/@tryghost/members-api/-/members-api-4.8.14.tgz#45d94467992c609dafa8b19bffc5a658ced475c7" - integrity sha512-Ogq4BS8PjRjrEA6QeTnAd+Jq2JnjluePQJaVSLI1pTY7BoTghYwxvcmlFdJE4zx0KXtQoVeZbQg3UQbQhtKF8g== +"@tryghost/members-api@4.8.15": + version "4.8.15" + resolved "https://registry.yarnpkg.com/@tryghost/members-api/-/members-api-4.8.15.tgz#75c2ad49ec93a73c50a2f8a6107084ba87df07cb" + integrity sha512-yi2U6tJlAKFF2S1QXxlD2JI/xB7yYjtDswPIhsw9pL/zSVLSEWxv4Jbj8U84Oo6E+I6cR2jenn7qHE2yCXy84g== dependencies: "@nexes/nql" "^0.6.0" "@tryghost/debug" "^0.1.2"