Skip to content

Commit d428041

Browse files
committed
Consistent parameter order
1 parent a763f7c commit d428041

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Adapters/Storage/Mongo/MongoStorageAdapter.js

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

200200
// Executes a find. Accepts: className, query in Parse format, and { skip, limit, sort }.
201-
find(className, query, { skip, limit, sort }, schema) {
201+
find(className, query, schema, { skip, limit, sort }) {
202202
let mongoWhere = this.transform.transformWhere(className, query, schema);
203203
return this.adaptiveCollection(className)
204204
.then(collection => collection.find(mongoWhere, { skip, limit, sort }))

src/Controllers/DatabaseController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ DatabaseController.prototype.find = function(className, query, {
698698
if (count) {
699699
return this.adapter.count(className, query, schema);
700700
} else {
701-
return this.adapter.find(className, query, mongoOptions, schema)
701+
return this.adapter.find(className, query, schema, mongoOptions)
702702
.then(objects => objects.map(object => filterSensitiveData(isMaster, aclGroup, className, object)));
703703
}
704704
});

0 commit comments

Comments
 (0)