update config

This commit is contained in:
Ivan Socolsky 2015-05-08 17:31:33 -03:00
parent 3202741a10
commit 910a1c8ddc
2 changed files with 12 additions and 12 deletions

View File

@ -40,14 +40,12 @@ var config = {
},
},
// To use email notifications uncomment this:
// email: {
// auth: {
// host: 'localhost',
// port: 25,
// ignoreTLS: true,
// },
// subjectPrefix: '[Wallet Service]',
// from: 'wallet-service@bitcore.io',
// },
email: {
host: 'localhost',
port: 25,
ignoreTLS: true,
subjectPrefix: '[Wallet Service]',
from: 'wallet-service@bitcore.io',
},
};
module.exports = config;

View File

@ -357,9 +357,11 @@ 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();
});
}
});
};