mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 11:01:56 +02:00
Work with ObjectId's passed to ProjectGetter
This commit is contained in:
@@ -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) ->) ->
|
||||
|
||||
Reference in New Issue
Block a user