mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
add comment
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user