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:
commit
37d1bf48a2
|
@ -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();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue