Browse Source

Merge pull request #214 from isocolsky/fix/notify_cb

Invoke callback after notification even if email service is not initialized
activeAddress
Matias Alejo Garcia 10 years ago
parent
commit
37d1bf48a2
  1. 6
      lib/server.js
  2. 2
      package.json

6
lib/server.js

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

2
package.json

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

Loading…
Cancel
Save