0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Fixed getMemberIdentityData method

no-issue

The users.get method expects an object with email prop
This commit is contained in:
Fabien O'Carroll 2019-09-03 18:20:09 +08:00
parent 6e3f89691d
commit d9fd07ef7f

View file

@ -55,7 +55,7 @@ module.exports = function MembersApi({
return users.create({email});
}
async function getMemberIdentityData(email){
return users.get(email);
return users.get({email});
}
async function getMemberIdentityToken(email){
const member = await getMemberIdentityData(email);