Removed filterWhere option
The correct place to set this option that triggers injection of PARTITION BY clause is includeHasMany() in juggler.js.
This commit is contained in:
parent
ac52394746
commit
0cb12f085b
|
@ -1069,10 +1069,6 @@ SQLConnector.prototype.all = function find(model, filter, options, cb) {
|
||||||
return self.fromRow(model, obj);
|
return self.fromRow(model, obj);
|
||||||
});
|
});
|
||||||
if (filter && filter.include) {
|
if (filter && filter.include) {
|
||||||
if(filter.where) {
|
|
||||||
options.filterWhere = filter.where;
|
|
||||||
}
|
|
||||||
|
|
||||||
self.getModelDefinition(model).model.include(
|
self.getModelDefinition(model).model.include(
|
||||||
objs, filter.include, options, cb);
|
objs, filter.include, options, cb);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue