From 9434f183d27e9d388ec95fef4c4109e13797d601 Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Mon, 1 Mar 2021 11:42:11 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20cancelling=20subscriptio?= =?UTF-8?q?ns=20when=20deleting=20members?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 158e891c71..dc654cf8a8 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/yarn.lock b/yarn.lock index f1f4dc706f..c963c81840 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"