Permalink
Browse files

logic error, should be < and not >

  • Loading branch information...
1 parent 53b10d8 commit fbdedcd495094a012e35352221d43e9f192f40ad @pkrumins committed Oct 8, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cart.js
View
@@ -17,7 +17,7 @@ function Cart(options) {
self.db = db;
db.filter(
function (key, item) {
- return item.lastAccess > Date.now() - options.maxAge;
+ return item.lastAccess < Date.now() - options.maxAge;
},
function (key, item) {
db.remove(key);

0 comments on commit fbdedcd

Please sign in to comment.