mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
also delete doc ops
This commit is contained in:
parent
2828df74e5
commit
7e3c6ddb3f
1 changed files with 5 additions and 4 deletions
|
@ -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
|
|
||||||
|
|
Loading…
Reference in a new issue