Skip to content

Commit

Permalink
Use _.merge instead of _.extend
Browse files Browse the repository at this point in the history
Use _.merge instead of _.extend to avoid overwriting prev. where
criteria
  • Loading branch information
dinana committed Oct 28, 2016
1 parent eb010ae commit cd146e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/waterline/query/deferred.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ Deferred.prototype.where = function(criteria) {

// this._criteria.where = where;

_.extend(this._criteria, criteria);
_.merge(this._criteria, criteria);

return this;
};
Expand Down

0 comments on commit cd146e4

Please sign in to comment.