Commit 0fddbb6e authored by Kamron Aroonrua's avatar Kamron Aroonrua 💬

memstore

parent 018199a3
...@@ -25,7 +25,7 @@ memstore.prototype.getItem = function(k,cb) ...@@ -25,7 +25,7 @@ memstore.prototype.getItem = function(k,cb)
if(!err && v){ if(!err && v){
if(typeof v == 'object' && v.type == 'Buffer') if(typeof v == 'object' && v.type == 'Buffer')
{ {
value = new Buffer(v.data); value = new Buffer.from(v.data);
}else{ }else{
value = JSON.parse(v); value = JSON.parse(v);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment