mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Added support for setting name in members-api
no-issue
This commit is contained in:
parent
a62b014905
commit
f1cd51b04b
1 changed files with 3 additions and 2 deletions
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue