Merge pull request #220 from isocolsky/fix/cb

Fix callback call when email service is not defined
This commit is contained in:
Matias Alejo Garcia 2015-05-19 14:53:02 -03:00
commit 24adbce291
1 changed files with 3 additions and 3 deletions

View File

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