mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-29 20:11:32 +02: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:
committed by
sharelatex
parent
286dd564e2
commit
bc2ee419eb
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user