add comment

This commit is contained in:
Tim Alby
2018-06-06 15:46:41 +02:00
parent 7726314e7c
commit 3cb499a3c2
@@ -37,6 +37,7 @@ module.exports = UserGetter =
if arguments.length == 2
callback = projection
projection = {}
# $exists: true MUST be set to use the partial index
query = emails: { $exists: true }, 'emails.email': email
db.users.findOne query, projection, (error, user) =>
return callback(error, user) if error? or user?