From 0cb12f085bb2e4bcfc0f2700e4f130f6cc5e0e08 Mon Sep 17 00:00:00 2001 From: eugene-frb Date: Thu, 19 Nov 2015 11:18:17 -0800 Subject: [PATCH] Removed filterWhere option The correct place to set this option that triggers injection of PARTITION BY clause is includeHasMany() in juggler.js. --- lib/sql.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/sql.js b/lib/sql.js index e90634b..d9848ec 100644 --- a/lib/sql.js +++ b/lib/sql.js @@ -1069,10 +1069,6 @@ SQLConnector.prototype.all = function find(model, filter, options, cb) { return self.fromRow(model, obj); }); if (filter && filter.include) { - if(filter.where) { - options.filterWhere = filter.where; - } - self.getModelDefinition(model).model.include( objs, filter.include, options, cb); } else {