mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-05 05:08:18 +00:00
ProjectGetter.findRootDoc moved to mongojs
This commit is contained in:
parent
eedaa43b58
commit
d95526bd8b
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ _ = require('underscore')
|
|||
logger = require('logger-sharelatex')
|
||||
async = require('async')
|
||||
|
||||
module.exports =
|
||||
module.exports = ProjectLocator =
|
||||
findElement: (options, _callback = (err, element, path, parentFolder)->)->
|
||||
callback = (args...) ->
|
||||
_callback(args...)
|
||||
|
@ -67,7 +67,7 @@ module.exports =
|
|||
if project?
|
||||
getRootDoc project
|
||||
else
|
||||
Project.findById project_id, (err, project)->
|
||||
ProjectGetter.getProject project_id, (err, project)->
|
||||
getRootDoc project
|
||||
|
||||
findElementByPath: (project_or_id, needlePath, callback = (err, foundEntity)->)->
|
||||
|
|
Loading…
Reference in a new issue