remove schemaController paramater

This commit is contained in:
Drew Gross
2016-05-23 17:29:26 -07:00
parent 7dca7e20b0
commit 4052470820
2 changed files with 2 additions and 3 deletions

View File

@@ -198,8 +198,7 @@ export class MongoStorageAdapter {
} }
// Executes a find. Accepts: className, query in Parse format, and { skip, limit, sort }. // Executes a find. Accepts: className, query in Parse format, and { skip, limit, sort }.
// Accepts the schemaController for legacy reasons. find(className, query, { skip, limit, sort }, schema) {
find(className, query, { skip, limit, sort }, schemaController, schema) {
return this.adaptiveCollection(className) return this.adaptiveCollection(className)
.then(collection => collection.find(query, { skip, limit, sort })) .then(collection => collection.find(query, { skip, limit, sort }))
.then(objects => objects.map(object => transform.mongoObjectToParseObject(className, object, schema))); .then(objects => objects.map(object => transform.mongoObjectToParseObject(className, object, schema)));

View File

@@ -701,7 +701,7 @@ DatabaseController.prototype.find = function(className, query, {
delete mongoOptions.limit; delete mongoOptions.limit;
return collection.count(mongoWhere, mongoOptions); return collection.count(mongoWhere, mongoOptions);
} else { } else {
return this.adapter.find(className, mongoWhere, mongoOptions, schemaController, schema) return this.adapter.find(className, mongoWhere, mongoOptions, schema)
.then(objects => objects.map(object => filterSensitiveData(isMaster, aclGroup, className, object))); .then(objects => objects.map(object => filterSensitiveData(isMaster, aclGroup, className, object)));
} }
}); });