mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Updated @tryghost/members-api to 0.37.1 (#12553)
no-issue * Internal refactor * Change to the signature of the updateSubscription method
This commit is contained in:
parent
8e4d58ddfe
commit
ab5833182b
3 changed files with 24 additions and 11 deletions
|
@ -247,9 +247,12 @@ module.exports = {
|
|||
method: 'edit'
|
||||
},
|
||||
async query(frame) {
|
||||
await membersService.api.members.updateSubscription(frame.options.id, {
|
||||
subscriptionId: frame.options.subscription_id,
|
||||
cancelAtPeriodEnd: frame.data.cancel_at_period_end
|
||||
await membersService.api.members.updateSubscription({
|
||||
id: frame.options.id,
|
||||
subscription: {
|
||||
subscription_id: frame.options.subscription_id,
|
||||
cancel_at_period_end: frame.data.cancel_at_period_end
|
||||
}
|
||||
});
|
||||
let model = await membersService.api.members.get({id: frame.options.id}, {
|
||||
withRelated: ['labels', 'stripeSubscriptions', 'stripeSubscriptions.customer']
|
||||
|
|
|
@ -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.2",
|
||||
"@tryghost/members-api": "0.36.0",
|
||||
"@tryghost/members-api": "0.37.1",
|
||||
"@tryghost/members-csv": "0.4.1",
|
||||
"@tryghost/members-ssr": "0.8.6",
|
||||
"@tryghost/mw-session-from-token": "0.1.14",
|
||||
|
|
24
yarn.lock
24
yarn.lock
|
@ -501,7 +501,7 @@
|
|||
dependencies:
|
||||
"@tryghost/kg-clean-basic-html" "^1.0.11"
|
||||
|
||||
"@tryghost/magic-link@0.6.2", "@tryghost/magic-link@^0.6.2":
|
||||
"@tryghost/magic-link@0.6.2":
|
||||
version "0.6.2"
|
||||
resolved "https://registry.yarnpkg.com/@tryghost/magic-link/-/magic-link-0.6.2.tgz#a429870a41b640dc51ba640747f4da002aa52163"
|
||||
integrity sha512-cCCcwlN+hHxKSyxk2D9fIgfXKo2iLOyM5A/U011d/QcqJbCaVv9QYn6HgfWoz40vgV6xEmHrMGLPn4SapLBZZw==
|
||||
|
@ -511,17 +511,27 @@
|
|||
jsonwebtoken "^8.5.1"
|
||||
lodash "^4.17.15"
|
||||
|
||||
"@tryghost/members-api@0.36.0":
|
||||
version "0.36.0"
|
||||
resolved "https://registry.yarnpkg.com/@tryghost/members-api/-/members-api-0.36.0.tgz#b085de5a6b13663dbe05e8dae8daa9a8fb2f17ed"
|
||||
integrity sha512-GrrVsrMdBU2Emq/KVxSOdGIki0sKUvrtSrwT95LoKa809Tnim9Doc1CNKkF48wkdMtv9Byq3rUEf8aoHjthQiA==
|
||||
"@tryghost/magic-link@^0.6.3":
|
||||
version "0.6.3"
|
||||
resolved "https://registry.yarnpkg.com/@tryghost/magic-link/-/magic-link-0.6.3.tgz#2c6fec74ccea62693aabdc4c89ae470c137d4968"
|
||||
integrity sha512-eEvMjuTo+/jp8K51y/lCdmR12ODVpXOGQ9P6qaXEEiFCjPJL+lTCcwGF17EXG++M/wP/GFjpJwC9dd37eTnHeg==
|
||||
dependencies:
|
||||
"@tryghost/magic-link" "^0.6.2"
|
||||
bluebird "^3.5.5"
|
||||
ghost-ignition "4.3.0"
|
||||
jsonwebtoken "^8.5.1"
|
||||
lodash "^4.17.15"
|
||||
|
||||
"@tryghost/members-api@0.37.1":
|
||||
version "0.37.1"
|
||||
resolved "https://registry.yarnpkg.com/@tryghost/members-api/-/members-api-0.37.1.tgz#25b2af9dde77103be3265af1fab336c1ff2cd199"
|
||||
integrity sha512-/twkZhNtXVNFpyWeX2kcXEZmjeRdi7iuHvPinSEpiRGK2uw/lRedQzh8EWfQC3zJDYMyU3ZhA7XPduCmGyq/xA==
|
||||
dependencies:
|
||||
"@tryghost/magic-link" "^0.6.3"
|
||||
bluebird "^3.5.4"
|
||||
body-parser "^1.19.0"
|
||||
cookies "^0.8.0"
|
||||
express "^4.16.4"
|
||||
ghost-ignition "4.2.4"
|
||||
ghost-ignition "4.3.0"
|
||||
got "^9.6.0"
|
||||
jsonwebtoken "^8.5.1"
|
||||
leaky-bucket "2.2.0"
|
||||
|
|
Loading…
Reference in a new issue