remove adaptive collection call
This commit is contained in:
@@ -679,8 +679,7 @@ DatabaseController.prototype.find = function(className, query, {
|
|||||||
return (isMaster ? Promise.resolve() : schemaController.validatePermission(className, aclGroup, op))
|
return (isMaster ? Promise.resolve() : schemaController.validatePermission(className, aclGroup, op))
|
||||||
.then(() => this.reduceRelationKeys(className, query))
|
.then(() => this.reduceRelationKeys(className, query))
|
||||||
.then(() => this.reduceInRelation(className, query, schemaController))
|
.then(() => this.reduceInRelation(className, query, schemaController))
|
||||||
.then(() => this.adapter.adaptiveCollection(className))
|
.then(() => {
|
||||||
.then(collection => {
|
|
||||||
if (!isMaster) {
|
if (!isMaster) {
|
||||||
query = this.addPointerPermissions(schemaController, className, op, query, aclGroup);
|
query = this.addPointerPermissions(schemaController, className, op, query, aclGroup);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user