Consistent parameter order
This commit is contained in:
@@ -198,7 +198,7 @@ export class MongoStorageAdapter {
|
||||
}
|
||||
|
||||
// Executes a find. Accepts: className, query in Parse format, and { skip, limit, sort }.
|
||||
find(className, query, { skip, limit, sort }, schema) {
|
||||
find(className, query, schema, { skip, limit, sort }) {
|
||||
let mongoWhere = this.transform.transformWhere(className, query, schema);
|
||||
return this.adaptiveCollection(className)
|
||||
.then(collection => collection.find(mongoWhere, { skip, limit, sort }))
|
||||
|
||||
@@ -698,7 +698,7 @@ DatabaseController.prototype.find = function(className, query, {
|
||||
if (count) {
|
||||
return this.adapter.count(className, query, schema);
|
||||
} else {
|
||||
return this.adapter.find(className, query, mongoOptions, schema)
|
||||
return this.adapter.find(className, query, schema, mongoOptions)
|
||||
.then(objects => objects.map(object => filterSensitiveData(isMaster, aclGroup, className, object)));
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user