also delete doc ops

This commit is contained in:
Henry Oswald 2018-10-19 11:37:44 +01:00
parent 2828df74e5
commit 7e3c6ddb3f

View file

@ -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