diff --git a/services/docstore/app/js/MongoManager.js b/services/docstore/app/js/MongoManager.js index 846d7a4565..7bfdf82aef 100644 --- a/services/docstore/app/js/MongoManager.js +++ b/services/docstore/app/js/MongoManager.js @@ -39,9 +39,7 @@ module.exports = MongoManager = { .find( { project_id: ObjectId(project_id.toString()), - deleted: true, - // TODO(das7pad): remove name filter after back filling data - name: { $exists: true } + deleted: true }, { projection: filter, diff --git a/services/docstore/test/unit/js/MongoManagerTests.js b/services/docstore/test/unit/js/MongoManagerTests.js index 7bf2c2d1a6..4e54a56586 100644 --- a/services/docstore/test/unit/js/MongoManagerTests.js +++ b/services/docstore/test/unit/js/MongoManagerTests.js @@ -192,8 +192,7 @@ describe('MongoManager', function () { this.db.docs.find .calledWith({ project_id: ObjectId(this.project_id), - deleted: true, - name: { $exists: true } + deleted: true }) .should.equal(true) })