I hereby claim:
- I am definitelycarter on github.
- I am definitelycarter (https://keybase.io/definitelycarter) on keybase.
- I have a public key ASCxVLI1fugFYMEARXwUazIP8g3jNcNZCWxbF8LtW5gDiwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
let getUserFromEmail = (email, cb) => { | |
$service.findUser({ email }, (err, user) => { | |
if(err) { | |
return cb(err); | |
} else if(user == null) { | |
return cb(new Error('The user was not found')); | |
} | |
console.log('User found'); | |
return cb(undefined, user); |
let getUserFromEmail = (email, cb) => { | |
$service.findUser({ email }, (err, user) => { | |
if(err) { | |
return cb(err); | |
} else if(user == null) { | |
return cb(new Error('The user was not found')); | |
} | |
console.log('User found'); | |
return cb(undefined, user); |