Просмотр исходного кода

add rootFolder to attributes in Clsi request

Brian Gough 9 лет назад
Родитель
Сommit
17b1075dc9
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      services/web/app/coffee/Features/Compile/ClsiManager.coffee

+ 1 - 1
services/web/app/coffee/Features/Compile/ClsiManager.coffee

@@ -120,7 +120,7 @@ module.exports = ClsiManager =
 	VALID_COMPILERS: ["pdflatex", "latex", "xelatex", "lualatex"]
 
 	_buildRequest: (project_id, options={}, callback = (error, request) ->) ->
-		Project.findById project_id, {}, (error, project) ->
+		Project.findById project_id, {compiler: 1, rootDoc_id: 1, imageName: 1, rootFolder:1}, (error, project) ->
 			return callback(error) if error?
 			return callback(new Errors.NotFoundError("project does not exist: #{project_id}")) if !project?
 			console.log "PROJECT", project, JSON.stringify(project.rootFolder,null,2)