mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-02 14:01:13 +00:00
[MongoManager] drop name filter from getProjectsDeletedDocs
All the doc names we had in the projects collection are back-filled now. A few docs will get dummy values back-filled.
This commit is contained in:
parent
e80d013268
commit
5bcd142b6f
2 changed files with 2 additions and 5 deletions
|
@ -39,9 +39,7 @@ module.exports = MongoManager = {
|
||||||
.find(
|
.find(
|
||||||
{
|
{
|
||||||
project_id: ObjectId(project_id.toString()),
|
project_id: ObjectId(project_id.toString()),
|
||||||
deleted: true,
|
deleted: true
|
||||||
// TODO(das7pad): remove name filter after back filling data
|
|
||||||
name: { $exists: true }
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
projection: filter,
|
projection: filter,
|
||||||
|
|
|
@ -192,8 +192,7 @@ describe('MongoManager', function () {
|
||||||
this.db.docs.find
|
this.db.docs.find
|
||||||
.calledWith({
|
.calledWith({
|
||||||
project_id: ObjectId(this.project_id),
|
project_id: ObjectId(this.project_id),
|
||||||
deleted: true,
|
deleted: true
|
||||||
name: { $exists: true }
|
|
||||||
})
|
})
|
||||||
.should.equal(true)
|
.should.equal(true)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue