Permalink
Browse files

had forgotten to JSON.parse here

  • Loading branch information...
1 parent ff473bc commit 008a196ab113ac1c1edeaf523e2332dd9be309f6 @pkrumins committed Sep 15, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cart.js
View
2 lib/cart.js
@@ -33,7 +33,7 @@ Cart.prototype.get = function (hash, fn) {
this.db.get(hash, function (err, val) {
if (err) throw err;
if (val) {
- fn(null, val);
+ fn(null, JSON.parse(val));
}
else {
fn();

0 comments on commit 008a196

Please sign in to comment.