fix storage set
This commit is contained in:
parent
415861df29
commit
7f17918ed9
1 changed files with 3 additions and 1 deletions
|
|
@ -155,7 +155,9 @@ Storage.prototype.getMany = function(walletId, keys, cb) {
|
|||
|
||||
// set value for key
|
||||
Storage.prototype.set = function(walletId, k, v, cb) {
|
||||
preconditions.checkArgument(walletId && k && !_.isUndefined(v) && cb);
|
||||
preconditions.checkArgument(walletId && k && cb);
|
||||
|
||||
if (_.isUndefined(v)) return cb();
|
||||
|
||||
this._write(this._key(walletId, k), v, cb);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue