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:
parent
389b034875
commit
23964750a9
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue