Browse Source

call cb even if email service is not defined

activeAddress
Ivan Socolsky 10 years ago
parent
commit
f58f7eb7e4
  1. 6
      lib/blockchainmonitor.js

6
lib/blockchainmonitor.js

@ -133,9 +133,9 @@ BlockchainMonitor.prototype._createNotification = function(walletId, txid, addre
self.storage.storeNotification(walletId, notification, function() {
self.messageBroker.send(notification)
if (self.emailService) {
self.emailService.sendEmail(notification, function() {
if (cb) return cb();
});
self.emailService.sendEmail(notification, cb);
} else {
return cb();
}
});
};

Loading…
Cancel
Save