0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Allowed getting member by uuid

no-issue
This commit is contained in:
Fabien O'Carroll 2019-11-05 17:01:41 +07:00
parent 389b034875
commit 23964750a9

View file

@ -22,7 +22,7 @@ async function createMember({email, name, note}, options = {}) {
}
async function getMember(data, options = {}) {
if (!data.email && !data.id) {
if (!data.email && !data.id && !data.uuid) {
return Promise.resolve(null);
}
const model = await models.Member.findOne(data, options);