mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Merge pull request #36 from sharelatex/ho-docstore-health-check-cleanup
also delete doc ops
This commit is contained in:
@@ -36,8 +36,9 @@ module.exports =
|
|||||||
cb()
|
cb()
|
||||||
else
|
else
|
||||||
cb("health check lines not equal #{body.lines} != #{lines}")
|
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)->
|
async.series jobs, callback
|
||||||
if err?
|
|
||||||
callback(err)
|
|
||||||
db.docs.remove {_id: doc_id, project_id: project_id}, callback
|
|
||||||
|
|||||||
Reference in New Issue
Block a user