🐛 Fixed 500 webhook errors for subscription with multiple prices

closes TryGhost/Team#1238

- previously returned 500 errors when a subscription had invalid number of prices due to external tampering on Stripe directly
- instead now returns 400 Bad Request error when subscriptions don't have right number of prices
This commit is contained in:
Rishabh 2021-12-01 20:28:50 +05:30
parent e17446456e
commit b1b0657959
2 changed files with 5 additions and 5 deletions

View File

@ -79,7 +79,7 @@
"@tryghost/limit-service": "1.0.0",
"@tryghost/logging": "1.0.1",
"@tryghost/magic-link": "1.0.14",
"@tryghost/members-api": "2.8.0",
"@tryghost/members-api": "2.8.2",
"@tryghost/members-csv": "1.1.8",
"@tryghost/members-importer": "0.3.4",
"@tryghost/members-offers": "0.10.3",

View File

@ -1542,10 +1542,10 @@
"@tryghost/domain-events" "^0.1.3"
"@tryghost/member-events" "^0.3.1"
"@tryghost/members-api@2.8.0":
version "2.8.0"
resolved "https://registry.yarnpkg.com/@tryghost/members-api/-/members-api-2.8.0.tgz#fcdf4cc26402304e8e11dc8520a0fdf1648f5287"
integrity sha512-lLhEWPjtOjf0PmIXAQp/uuehokdza6LMJjK+miW6lIrvibqutuvCpcSAnq2UvqmmuuOAlIGEDYhzmAvMMU29pQ==
"@tryghost/members-api@2.8.2":
version "2.8.2"
resolved "https://registry.yarnpkg.com/@tryghost/members-api/-/members-api-2.8.2.tgz#0dd76fba4227c47265b61c5cbdc3dd11d25c251a"
integrity sha512-7kSFzrfvNGCG37weEhrzm54hQF1lPkQ1Om2IOLpKpFd/EZh1AN78FDfyQ5GAGy2CFnK5cTWkDoOWYpswnowCAQ==
dependencies:
"@tryghost/debug" "^0.1.2"
"@tryghost/domain-events" "^0.1.3"