From fe59613867bbdc385665be029f54db61614c4d05 Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Thu, 10 Oct 2019 11:32:42 +0700 Subject: [PATCH] Wired up the note property to members-api no-issue --- core/server/services/members/api.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/server/services/members/api.js b/core/server/services/members/api.js index 901d3f452c..5e66590e43 100644 --- a/core/server/services/members/api.js +++ b/core/server/services/members/api.js @@ -7,10 +7,11 @@ const ghostVersion = require('../../lib/ghost-version'); const mail = require('../mail'); const models = require('../../models'); -function createMember({email, name}) { +function createMember({email, name, note}) { return models.Member.add({ email, - name + name, + note }).then((member) => { return member.toJSON(); }); @@ -70,8 +71,8 @@ async function getMetadata(module, member) { }; } -function updateMember({name}, options) { - return models.Member.edit({name}, options); +function updateMember({name, note}, options) { + return models.Member.edit({name, note}, options); } function deleteMember(options) {