mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-28 15:41:00 +00:00
Merge pull request #36 from sharelatex/ho-docstore-health-check-cleanup
also delete doc ops
This commit is contained in:
commit
bf84d316f5
1 changed files with 5 additions and 4 deletions
|
@ -36,8 +36,9 @@ module.exports =
|
|||
cb()
|
||||
else
|
||||
cb("health check lines not equal #{body.lines} != #{lines}")
|
||||
(cb)->
|
||||
db.docs.remove {_id: doc_id, project_id: project_id}, cb
|
||||
(cb)->
|
||||
db.docOps.remove {doc_id: doc_id}, cb
|
||||
]
|
||||
async.series jobs, (err)->
|
||||
if err?
|
||||
callback(err)
|
||||
db.docs.remove {_id: doc_id, project_id: project_id}, callback
|
||||
async.series jobs, callback
|
||||
|
|
Loading…
Reference in a new issue