mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #100 from overleaf/jpa-drop-name-filter
[MongoManager] drop name filter from getProjectsDeletedDocs
This commit is contained in:
commit
54c6cce902
2 changed files with 2 additions and 5 deletions
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue