invoke cb
This commit is contained in:
parent
cb0e593014
commit
d27a403b08
|
@ -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();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue