Skip to content

Commit 4052470

Browse files
committed
remove schemaController paramater
1 parent 7dca7e2 commit 4052470

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Adapters/Storage/Mongo/MongoStorageAdapter.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,7 @@ export class MongoStorageAdapter {
198198
}
199199

200200
// Executes a find. Accepts: className, query in Parse format, and { skip, limit, sort }.
201-
// Accepts the schemaController for legacy reasons.
202-
find(className, query, { skip, limit, sort }, schemaController, schema) {
201+
find(className, query, { skip, limit, sort }, schema) {
203202
return this.adaptiveCollection(className)
204203
.then(collection => collection.find(query, { skip, limit, sort }))
205204
.then(objects => objects.map(object => transform.mongoObjectToParseObject(className, object, schema)));

src/Controllers/DatabaseController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ DatabaseController.prototype.find = function(className, query, {
701701
delete mongoOptions.limit;
702702
return collection.count(mongoWhere, mongoOptions);
703703
} else {
704-
return this.adapter.find(className, mongoWhere, mongoOptions, schemaController, schema)
704+
return this.adapter.find(className, mongoWhere, mongoOptions, schema)
705705
.then(objects => objects.map(object => filterSensitiveData(isMaster, aclGroup, className, object)));
706706
}
707707
});

0 commit comments

Comments
 (0)