mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
[misc] MongoManager: drop unused, potentially expensive default options
All call-sites specify an options object.
This commit is contained in:
@@ -34,9 +34,6 @@ module.exports = MongoManager = {
|
||||
},
|
||||
|
||||
getProjectsDocs(project_id, options, filter, callback) {
|
||||
if (options == null) {
|
||||
options = { include_deleted: true }
|
||||
}
|
||||
const query = { project_id: ObjectId(project_id.toString()) }
|
||||
if (!options.include_deleted) {
|
||||
query.deleted = { $ne: true }
|
||||
|
||||
Reference in New Issue
Block a user