From f1cd51b04b4ec58e572b8c5af197de0b162ce8f5 Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Thu, 26 Sep 2019 15:39:24 +0700 Subject: [PATCH] Added support for setting name in members-api no-issue --- core/server/services/members/api.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/server/services/members/api.js b/core/server/services/members/api.js index 6475c48905..b7901a0c66 100644 --- a/core/server/services/members/api.js +++ b/core/server/services/members/api.js @@ -7,9 +7,10 @@ const ghostVersion = require('../../lib/ghost-version'); const mail = require('../mail'); const models = require('../../models'); -function createMember({email}) { +function createMember({email, name}) { return models.Member.add({ - email + email, + name }).then((member) => { return member.toJSON(); });