Skip to content

Commit

Permalink
undo commit 4b9724b. Breaks queries like {expires: {: Date.now()}}
Browse files Browse the repository at this point in the history
  • Loading branch information
masylum committed Aug 3, 2011
1 parent 01a0d81 commit 55f27bb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/helpers/mapper.js
Expand Up @@ -81,10 +81,9 @@ MAPPER.mapDocument = function (maps, arg) {
};

MAPPER.map = function (maps, fn, args) {
if (fn === 'insert' || fn.match(/^find/)) {
if (fn === 'insert') {
MAPPER.mapDocument(maps, args[0]);
} else if (fn === 'update') {
MAPPER.mapDocument(maps, args[0]);
MAPPER.mapDocument(maps, args[1]);
}
};
Expand Down

0 comments on commit 55f27bb

Please sign in to comment.