From 35d1fc3e12b6f8ed524a2717dd29e2b1d3e8cc22 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Tue, 26 Dec 2017 16:03:36 -0300 Subject: [PATCH] fix --- lib/storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,