|
|
@ -357,9 +357,11 @@ WalletService.prototype._notify = function(type, data, opts, cb) { |
|
|
|
|
|
|
|
this.storage.storeNotification(walletId, notification, function() { |
|
|
|
self.messageBroker.send(notification); |
|
|
|
self.emailService.sendEmail(notification, function() { |
|
|
|
if (cb) return cb(); |
|
|
|
}); |
|
|
|
if (self.emailService) { |
|
|
|
self.emailService.sendEmail(notification, function() { |
|
|
|
if (cb) return cb(); |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
}; |
|
|
|
|
|
|
|