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(); });