Merge pull request #214 from isocolsky/fix/notify_cb

Invoke callback after notification even if email service is not initialized
This commit is contained in:
Matias Alejo Garcia 2015-05-15 12:15:45 -03:00
commit 37d1bf48a2
2 changed files with 4 additions and 4 deletions

View File

@ -359,9 +359,9 @@ WalletService.prototype._notify = function(type, data, opts, cb) {
this.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();
}
});
};

View File

@ -2,7 +2,7 @@
"name": "bitcore-wallet-service",
"description": "A service for Mutisig HD Bitcoin Wallets",
"author": "BitPay Inc",
"version": "0.0.29",
"version": "0.0.30",
"keywords": [
"bitcoin",
"copay",