mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-23 18:12:18 +00:00
Merge pull request #86 from overleaf/jpa-drop-expensive-default
[misc] MongoManager: drop unused, potentially expensive default options
This commit is contained in:
commit
3ef1f91f47
1 changed files with 0 additions and 3 deletions
|
@ -34,9 +34,6 @@ module.exports = MongoManager = {
|
||||||
},
|
},
|
||||||
|
|
||||||
getProjectsDocs(project_id, options, filter, callback) {
|
getProjectsDocs(project_id, options, filter, callback) {
|
||||||
if (options == null) {
|
|
||||||
options = { include_deleted: true }
|
|
||||||
}
|
|
||||||
const query = { project_id: ObjectId(project_id.toString()) }
|
const query = { project_id: ObjectId(project_id.toString()) }
|
||||||
if (!options.include_deleted) {
|
if (!options.include_deleted) {
|
||||||
query.deleted = { $ne: true }
|
query.deleted = { $ne: true }
|
||||||
|
|
Loading…
Reference in a new issue