mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 22:21:49 +00:00
don't log out when doc lines are [] as this is a new empty doc
This commit is contained in:
parent
daf7c4f68e
commit
3cd3c118d1
1 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,8 @@ module.exports = DocManager =
|
||||||
if docFromDocCollection?
|
if docFromDocCollection?
|
||||||
return callback null, docFromDocCollection, mongoPath
|
return callback null, docFromDocCollection, mongoPath
|
||||||
else if doc?
|
else if doc?
|
||||||
logger.warn project_id:project_id, doc_id:doc_id, "doc just used from project collection, why?"
|
if doc?.lines?.length > 0
|
||||||
|
logger.warn project_id:project_id, doc_id:doc_id, "doc just used from project collection, why?"
|
||||||
return callback null, doc, mongoPath
|
return callback null, doc, mongoPath
|
||||||
else
|
else
|
||||||
return callback new Errors.NotFoundError("No such doc: #{project_id}")
|
return callback new Errors.NotFoundError("No such doc: #{project_id}")
|
||||||
|
|
Loading…
Reference in a new issue