mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
added missing err check
This commit is contained in:
parent
704bf53fe5
commit
535d4435bf
1 changed files with 1 additions and 0 deletions
|
@ -67,6 +67,7 @@ module.exports = DocManager =
|
|||
return callback(error) if error?
|
||||
return callback new Errors.NotFoundError("No such project/doc: #{project_id}/#{doc_id}") if !doc?
|
||||
MongoManager.upsertIntoDocCollection project_id, doc_id, doc.lines, doc.rev, (error) ->
|
||||
return callback(error) if error?
|
||||
MongoManager.markDocAsDeleted doc_id, (error) ->
|
||||
return callback(error) if error?
|
||||
callback()
|
||||
|
|
Loading…
Reference in a new issue