0
Fork 0
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:
Fabien O'Carroll 2019-09-26 15:39:24 +07:00
parent a62b014905
commit f1cd51b04b

View file

@ -7,9 +7,10 @@ const ghostVersion = require('../../lib/ghost-version');
const mail = require('../mail'); const mail = require('../mail');
const models = require('../../models'); const models = require('../../models');
function createMember({email}) { function createMember({email, name}) {
return models.Member.add({ return models.Member.add({
email email,
name
}).then((member) => { }).then((member) => {
return member.toJSON(); return member.toJSON();
}); });