Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

had forgotten to JSON.parse here

  • Loading branch information...
commit 008a196ab113ac1c1edeaf523e2332dd9be309f6 1 parent ff473bc
Peteris Krumins authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/cart.js
2  lib/cart.js
View
@@ -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();
Please sign in to comment.
Something went wrong with that request. Please try again.