Update models more
This commit is contained in:
@@ -51,7 +51,9 @@ export class EmailHandlers {
|
||||
}
|
||||
|
||||
// configure AWS SDK
|
||||
aws.config = new aws.Config(config.get('awsConfig'));
|
||||
const awsConfig = config.get('awsConfig')
|
||||
|
||||
aws.config = new aws.Config(awsConfig)
|
||||
|
||||
// create Nodemailer SES transporter
|
||||
let transporter = nodemailer.createTransport({
|
||||
@@ -60,7 +62,7 @@ export class EmailHandlers {
|
||||
})
|
||||
});
|
||||
|
||||
const senderEmail = config.get('senderEmail')
|
||||
const senderEmail = config.get('email.senderEmail')
|
||||
const template = this.templates[templateName]
|
||||
|
||||
if (!template) {
|
||||
|
||||
@@ -13,8 +13,8 @@ export class MS {
|
||||
|
||||
async connect(amqpUri) {
|
||||
this.connection = await amqp.connect(amqpUri)
|
||||
this.connection.on('error', () => {
|
||||
this.log.error(`RabbitMQ has gone, shutting down service`)
|
||||
this.connection.on('error', (err) => {
|
||||
this.log.error(`${err}. Shutting down service.`)
|
||||
process.exit(-1)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user