add overwrite param to #store

This commit is contained in:
Matias Alejo Garcia 2014-09-28 20:50:37 -03:00
commit 77a01370cb
5 changed files with 141 additions and 33 deletions

View file

@ -876,7 +876,7 @@ Wallet.prototype.store = function(cb) {
var val = this.toObj();
var key = 'wallet::' + this.id + ((val.opts && val.opts.name) ? '_' + obj.opts.name : '');
this.storage.setFromObj(key, val, function(err) {
this.storage.set(key, val, function(err) {
log.debug('Wallet stored');
if (cb)
cb(err);