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() {
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
package.json

@ -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…
Cancel
Save