mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 05:37:34 +03:00
Updated get/set metadata fn signatures
no-issue This is to reflect an upstream change in members-api
This commit is contained in:
parent
757fe72da1
commit
29b3dad302
@ -28,7 +28,7 @@ function getMember(data, options = {}) {
|
||||
});
|
||||
}
|
||||
|
||||
async function setMemberMetadata(member, module, metadata) {
|
||||
async function setMetadata(module, metadata) {
|
||||
if (module !== 'stripe') {
|
||||
return;
|
||||
}
|
||||
@ -48,7 +48,7 @@ async function setMemberMetadata(member, module, metadata) {
|
||||
return;
|
||||
}
|
||||
|
||||
async function getMemberMetadata(member, module) {
|
||||
async function getMetadata(module, member) {
|
||||
if (module !== 'stripe') {
|
||||
return;
|
||||
}
|
||||
@ -204,8 +204,8 @@ function createApiInstance() {
|
||||
paymentConfig: {
|
||||
stripe: getStripePaymentConfig()
|
||||
},
|
||||
setMemberMetadata,
|
||||
getMemberMetadata,
|
||||
setMetadata,
|
||||
getMetadata,
|
||||
createMember,
|
||||
updateMember,
|
||||
getMember,
|
||||
|
Loading…
Reference in New Issue
Block a user