mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Work with ObjectId's passed to ProjectGetter
This commit is contained in:
parent
2fb8b0e807
commit
628fb65bc3
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ module.exports = ProjectGetter =
|
|||
excludes = {}
|
||||
for i in [1..@EXCLUDE_DEPTH]
|
||||
excludes["rootFolder#{Array(i).join(".folder")}.docs.lines"] = 0
|
||||
db.projects.find _id: ObjectId(project_id), excludes, (error, projects = []) ->
|
||||
db.projects.find _id: ObjectId(project_id.toString()), excludes, (error, projects = []) ->
|
||||
callback error, projects[0]
|
||||
|
||||
getProject: (query, projection, callback = (error, project) ->) ->
|
||||
|
|
Loading…
Reference in a new issue