Returned fully hydrated member object when creating member

no-issue
This commit is contained in:
Fabien O'Carroll 2019-09-09 13:44:50 +08:00
parent 1e61c08c0c
commit d741cd9fba

View File

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