Permalink
Browse files

undo commit 4b9724b. Breaks queries like `{expires: {: Date.now()}}`

  • Loading branch information...
1 parent 01a0d81 commit 55f27bbc86623dee66e44945b790fdf5e6b350e4 @masylum committed Aug 3, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/helpers/mapper.js
View
@@ -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]);
}
};

0 comments on commit 55f27bb

Please sign in to comment.