Skip to content

Commit

Permalink
Map the find criteria in updates as well as the update criteria.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Holland committed Jul 8, 2011
1 parent 553051a commit c9c0efd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/helpers/mapper.js
Expand Up @@ -84,6 +84,7 @@ MAPPER.map = function (maps, fn, args) {
if (fn === 'insert' || fn.match(/^find/)) { if (fn === 'insert' || fn.match(/^find/)) {
MAPPER.filterUpdate(maps, args[0]); MAPPER.filterUpdate(maps, args[0]);
} else if (fn === 'update') { } else if (fn === 'update') {
MAPPER.filterUpdate(maps, args[0]);
MAPPER.filterUpdate(maps, args[1]); MAPPER.filterUpdate(maps, args[1]);
} }
}; };
Expand Down

0 comments on commit c9c0efd

Please sign in to comment.