Skip to content

Commit

Permalink
fixed issue #1180
Browse files Browse the repository at this point in the history
issue here: #1180
  • Loading branch information
anotheri committed Oct 31, 2012
1 parent 168f32e commit f9a1519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/query.js
Expand Up @@ -238,7 +238,7 @@ Query.prototype.cast = function (model, obj) {
path = paths[i];
val = obj[path];

if ('$or' === path || '$nor' === path) {
if ('$or' === path || '$nor' === path || '$and' === path) {
var k = val.length
, orComponentQuery;

Expand Down

0 comments on commit f9a1519

Please sign in to comment.