ProjectGetter.findRootDoc moved to mongojs

This commit is contained in:
Henry Oswald 2016-02-26 08:35:10 +00:00
parent eedaa43b58
commit d95526bd8b

View file

@ -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)->)->