From 740d1b052fd2c8b0d25157ec4f38f3aacb176372 Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Mon, 26 Apr 2021 17:20:36 +0100 Subject: [PATCH] Added support for creating subscriptions refs https://github.com/TryGhost/Team/issues/616 refs https://github.com/TryGhost/Ghost/commit/33f26fbf This adds the createSubscription method to the MemberRepository, which is used by the Member controller in the references commit. We also fix updating products to correctly handle stripe_prices and the product name. --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index dca9a4aed0..9a6de131ed 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "@tryghost/kg-mobiledoc-html-renderer": "4.0.0", "@tryghost/limit-service": "0.4.2", "@tryghost/magic-link": "1.0.2", - "@tryghost/members-api": "1.3.2", + "@tryghost/members-api": "1.4.0", "@tryghost/members-csv": "1.0.0", "@tryghost/members-ssr": "1.0.2", "@tryghost/mw-session-from-token": "0.1.19", diff --git a/yarn.lock b/yarn.lock index c1f836f39c..86c2a8dff9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -559,10 +559,10 @@ jsonwebtoken "^8.5.1" lodash "^4.17.15" -"@tryghost/members-api@1.3.2": - version "1.3.2" - resolved "https://registry.npmjs.org/@tryghost/members-api/-/members-api-1.3.2.tgz#13d604308d7eac86ed12973a7164859d6b0b0f62" - integrity sha512-jFoFURag59rsMuyk9U5qmrk866DtIwQjEDXTmWXPvMWhnzlenL1JVUIRNtV8Ez9jH2tK6/Td2KkTZuCVd5Su0Q== +"@tryghost/members-api@1.4.0": + version "1.4.0" + resolved "https://registry.yarnpkg.com/@tryghost/members-api/-/members-api-1.4.0.tgz#4e801156e2bf1fa1f2917ab73ec6a14afefad183" + integrity sha512-Wi0yKY1XHuYNR9CFsQD6Iro4gjHC++iZkQt5hYTCUrsTni7wK2B1dAtVcbq7/HdOoRJn2t4t7n1WmN3jsKbT9A== dependencies: "@tryghost/errors" "^0.2.9" "@tryghost/magic-link" "^1.0.2"