From 7a07327503a89d47718f15f9d31ad6c16c068c97 Mon Sep 17 00:00:00 2001 From: Yohanes Krisna Yana Javista Date: Sat, 27 Jan 2024 11:45:53 +0700 Subject: [PATCH] Sendgrid Email SMTP --- index.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.mjs b/index.mjs index a4e2533..fdffa56 100644 --- a/index.mjs +++ b/index.mjs @@ -42,7 +42,7 @@ amqp.connect(process.env.AMQP_SERVER).then(async conn => { } if (queuePaylaterExist) { queuePaylaterExist.then(() => { - return ch.consume(queueNota, async (msg) => { + return ch.consume(queuePaylater, async (msg) => { var messageBody = JSON.parse(msg.content.toString()) console.log(`[*PayLater] Message Received! email : ${messageBody.email}`) sendReceipt({ @@ -52,7 +52,7 @@ amqp.connect(process.env.AMQP_SERVER).then(async conn => { }) }, { noAck: true }) }).then(() => { - console.log('* Waiting for messages from queue ' + queueNota) + console.log('* Waiting for messages from queue ' + queuePaylater) }) } }).catch(console.warn)