Consistent parameter order

This commit is contained in:
Drew Gross
2016-05-23 20:22:04 -07:00
parent a763f7c2fc
commit d428041a83
2 changed files with 2 additions and 2 deletions

View File

@@ -198,7 +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 }.
find(className, query, { skip, limit, sort }, schema) { find(className, query, schema, { skip, limit, sort }) {
let mongoWhere = this.transform.transformWhere(className, query, schema); let mongoWhere = this.transform.transformWhere(className, query, schema);
return this.adaptiveCollection(className) return this.adaptiveCollection(className)
.then(collection => collection.find(mongoWhere, { skip, limit, sort })) .then(collection => collection.find(mongoWhere, { skip, limit, sort }))

View File

@@ -698,7 +698,7 @@ DatabaseController.prototype.find = function(className, query, {
if (count) { if (count) {
return this.adapter.count(className, query, schema); return this.adapter.count(className, query, schema);
} else { } 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))); .then(objects => objects.map(object => filterSensitiveData(isMaster, aclGroup, className, object)));
} }
}); });