mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
return doclines as array from getProjectDocs
for compatibility with getDoc
This commit is contained in:
@@ -88,7 +88,10 @@ module.exports = ProjectManager =
|
||||
if error?
|
||||
logger.error err: error, project_id: project_id, doc_id: doc_id, "error getting project doc lines"
|
||||
return cb(error)
|
||||
docs.push {_id: doc_id, lines: lines, v: version}
|
||||
try
|
||||
docs.push {_id: doc_id, lines: JSON.parse(lines), v: version}
|
||||
catch e
|
||||
return cb(e)
|
||||
cb()
|
||||
async.series jobs, (error) ->
|
||||
return callback(error) if error?
|
||||
|
||||
Reference in New Issue
Block a user