Merge pull request #34 from sharelatex/ho-docstore-health-check-cleanup

hard delete a doc on health check
This commit is contained in:
Henry Oswald 2018-10-19 11:27:42 +01:00 committed by GitHub
commit 5bcf9ea7e9

View file

@ -1,4 +1,4 @@
ObjectId = require("mongojs").ObjectId
{db, ObjectId} = require "./mongojs"
request = require("request")
async = require("async")
_ = require("underscore")
@ -40,4 +40,4 @@ module.exports =
async.series jobs, (err)->
if err?
callback(err)
request.del getOpts(), callback
db.docs.remove {_id: doc_id, project_id: project_id}, callback