mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Another find->findOne
This commit is contained in:
parent
76af5e5563
commit
3e423b8a06
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ module.exports = ReferencesHandler =
|
|||
return ids
|
||||
|
||||
_isFullIndex: (project, callback = (err, result) ->) ->
|
||||
User.find { _id: project.owner_ref }, { features: true }, (err, owner) ->
|
||||
User.findOne { _id: project.owner_ref }, { features: true }, (err, owner) ->
|
||||
return callback(err) if err?
|
||||
callback(null, owner?.features?.references == true)
|
||||
|
||||
|
|
Loading…
Reference in a new issue