update config
This commit is contained in:
parent
3202741a10
commit
910a1c8ddc
16
config.js
16
config.js
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue