mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #1451 from sharelatex/ns-check-institution-users-patch
remove extra emails call in mongo query GitOrigin-RevId: d64ab2ef72fe7691bc29e56210de0e04743ee917
This commit is contained in:
parent
286dd564e2
commit
bc2ee419eb
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ module.exports = UserGetter =
|
|||
callback = projection
|
||||
projection = {}
|
||||
# $exists: true MUST be set to use the partial index
|
||||
query = emails: { emails: { $exists: true, $elemMatch: { email: { $in: emails }, confirmedAt: { $exists: true }}}}
|
||||
query = emails: { $exists: true, $elemMatch: { email: { $in: emails }, confirmedAt: { $exists: true }}}
|
||||
db.users.find query, projection, (error, users) =>
|
||||
callback(error, users)
|
||||
|
||||
|
|
Loading…
Reference in a new issue