0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

🐛 Fixed cancelling subscriptions when deleting members

closes https://github.com/TryGhost/Ghost/issues/12711
refs https://github.com/allouis/Members/commit/0be1ce2c

We were not waiting for the stripeSubscriptions relation to be fetched
from the database before looping through them and deleting them, the
members-api has been updated to correctly wait for the relations to be
fetched, and this bump fixes the issue.
This commit is contained in:
Fabien O'Carroll 2021-03-01 11:42:11 +00:00
parent 5f94dab52b
commit 9434f183d2
2 changed files with 5 additions and 5 deletions

View file

@ -56,7 +56,7 @@
"@tryghost/kg-markdown-html-renderer": "3.0.0",
"@tryghost/kg-mobiledoc-html-renderer": "3.0.1",
"@tryghost/magic-link": "0.6.4",
"@tryghost/members-api": "0.37.11",
"@tryghost/members-api": "0.37.12",
"@tryghost/members-csv": "0.4.2",
"@tryghost/members-ssr": "0.8.8",
"@tryghost/mw-session-from-token": "0.1.14",

View file

@ -553,10 +553,10 @@
jsonwebtoken "^8.5.1"
lodash "^4.17.15"
"@tryghost/members-api@0.37.11":
version "0.37.11"
resolved "https://registry.yarnpkg.com/@tryghost/members-api/-/members-api-0.37.11.tgz#a66aa63c04236f2a5fce207567746bf91fb0d59c"
integrity sha512-LMaE1XPDru7kysrFwZ48/gtL2OMVlPUK4DEjLL1ys7seQTKm6ljhalc40rl7zBkvg1nh+br0qcikMSTpng2vzA==
"@tryghost/members-api@0.37.12":
version "0.37.12"
resolved "https://registry.yarnpkg.com/@tryghost/members-api/-/members-api-0.37.12.tgz#53660d77b2116b991b3e2e9633ec0d9d01d9249a"
integrity sha512-16yLqRLjInmwgEnQe0mSeGj6aM8wch2ZoZEMCuj1aaTdwZExtvtB3qbgX+zYz3Nblr53VdQe9Sz0J4U4IwXDAA==
dependencies:
"@tryghost/magic-link" "^0.6.7"
bluebird "^3.5.4"