瀏覽代碼

Sendgrid Email SMTP

master
Krisna Yana Javista 1 年之前
父節點
當前提交
7a07327503
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      index.mjs

+ 2
- 2
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)


Loading…
取消
儲存