Permalink
Browse files

Map the find criteria in updates as well as the update criteria.

  • Loading branch information...
1 parent 553051a commit c9c0efd41a23c4776663d489b7a51d855dafabb6 Rob Holland committed Jul 8, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/helpers/mapper.js
@@ -84,6 +84,7 @@ MAPPER.map = function (maps, fn, args) {
if (fn === 'insert' || fn.match(/^find/)) {
MAPPER.filterUpdate(maps, args[0]);
} else if (fn === 'update') {
+ MAPPER.filterUpdate(maps, args[0]);
MAPPER.filterUpdate(maps, args[1]);
}
};

0 comments on commit c9c0efd

Please sign in to comment.