diff --git a/lib/storage.js b/lib/storage.js index 10b3f6a..a966f91 100644 --- a/lib/storage.js +++ b/lib/storage.js @@ -242,7 +242,7 @@ Storage.prototype.fetchTx = function(walletId, txProposalId, cb) { Storage.prototype.fetchTxByHash = function(hash, cb) { var self = this; - if (!this.db) return; + if (!this.db) return cb(); this.db.collection(collections.TXS).findOne({ txid: hash,