Wired up the note property to members-api

no-issue
This commit is contained in:
Fabien O'Carroll 2019-10-10 11:32:42 +07:00
parent 035cb55ca9
commit fe59613867

View File

@ -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) {