From 2828df74e5d4ba6373f94a80fbac06cef58619ed Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Wed, 3 Oct 2018 14:57:01 +0100 Subject: [PATCH] hard delete a doc on health check --- services/docstore/app/coffee/HealthChecker.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/docstore/app/coffee/HealthChecker.coffee b/services/docstore/app/coffee/HealthChecker.coffee index cb5d053aa1..71e7005f7b 100644 --- a/services/docstore/app/coffee/HealthChecker.coffee +++ b/services/docstore/app/coffee/HealthChecker.coffee @@ -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