Remove all traces of soa-req-id

This commit is contained in:
James Allen
2014-10-15 14:11:02 +01:00
parent fd8991f62e
commit 941f550d6c
18 changed files with 186 additions and 237 deletions
@@ -1,11 +1,9 @@
slReqIdHelper = require('soa-req-id')
ProjectEntityHandler = require "./ProjectEntityHandler"
Path = require "path"
module.exports = ProjectRootDocManager =
setRootDocAutomatically: (project_id, sl_req_id, callback = (error) ->) ->
{callback, sl_req_id} = slReqIdHelper.getCallbackAndReqId(callback, sl_req_id)
ProjectEntityHandler.getAllDocs project_id, sl_req_id, (error, docs) ->
setRootDocAutomatically: (project_id, callback = (error) ->) ->
ProjectEntityHandler.getAllDocs project_id, (error, docs) ->
return callback(error) if error?
root_doc_id = null
for path, doc of docs
@@ -14,7 +12,7 @@ module.exports = ProjectRootDocManager =
if Path.extname(path).match(/\.R?tex$/) and match and !match[1].match /%/
root_doc_id = doc._id
if root_doc_id?
ProjectEntityHandler.setRootDoc project_id, root_doc_id, sl_req_id, callback
ProjectEntityHandler.setRootDoc project_id, root_doc_id, callback
else
callback()