invoke cb

This commit is contained in:
Ivan Socolsky 2015-05-15 12:08:36 -03:00
parent cb0e593014
commit d27a403b08
1 changed files with 3 additions and 3 deletions

View File

@ -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();
}
});
};