🐛 Fixed 500 errors when cancelling subscriptions

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.
This commit is contained in:
Fabien "egg" O'Carroll 2022-02-09 11:37:49 +02:00
parent 88786f768b
commit 21c43f3b10
2 changed files with 5 additions and 5 deletions

View File

@ -80,7 +80,7 @@
"@tryghost/limit-service": "1.0.9", "@tryghost/limit-service": "1.0.9",
"@tryghost/logging": "2.0.3", "@tryghost/logging": "2.0.3",
"@tryghost/magic-link": "1.0.17", "@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-importer": "0.5.0",
"@tryghost/members-offers": "0.10.6", "@tryghost/members-offers": "0.10.6",
"@tryghost/members-ssr": "1.0.19", "@tryghost/members-ssr": "1.0.19",

View File

@ -1848,10 +1848,10 @@
"@tryghost/domain-events" "^0.1.6" "@tryghost/domain-events" "^0.1.6"
"@tryghost/member-events" "^0.3.4" "@tryghost/member-events" "^0.3.4"
"@tryghost/members-api@4.8.14": "@tryghost/members-api@4.8.15":
version "4.8.14" version "4.8.15"
resolved "https://registry.yarnpkg.com/@tryghost/members-api/-/members-api-4.8.14.tgz#45d94467992c609dafa8b19bffc5a658ced475c7" resolved "https://registry.yarnpkg.com/@tryghost/members-api/-/members-api-4.8.15.tgz#75c2ad49ec93a73c50a2f8a6107084ba87df07cb"
integrity sha512-Ogq4BS8PjRjrEA6QeTnAd+Jq2JnjluePQJaVSLI1pTY7BoTghYwxvcmlFdJE4zx0KXtQoVeZbQg3UQbQhtKF8g== integrity sha512-yi2U6tJlAKFF2S1QXxlD2JI/xB7yYjtDswPIhsw9pL/zSVLSEWxv4Jbj8U84Oo6E+I6cR2jenn7qHE2yCXy84g==
dependencies: dependencies:
"@nexes/nql" "^0.6.0" "@nexes/nql" "^0.6.0"
"@tryghost/debug" "^0.1.2" "@tryghost/debug" "^0.1.2"