From 3624f804f418268300ee260e882e3ca0c5866519 Mon Sep 17 00:00:00 2001 From: krisna0107 Date: Tue, 7 Feb 2023 17:03:44 +0700 Subject: [PATCH] TO ENV --- index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.mjs b/index.mjs index 1f3c8e8..d2783f8 100644 --- a/index.mjs +++ b/index.mjs @@ -30,7 +30,7 @@ app.get('/', (_req, res) => { res.status.send(200).send("Amigo Receipt Sender Service Homepage!") }) -amqp.connect('amqp://localhost' ).then(async conn=> { +amqp.connect(process.env.AMQP_SERVER).then(async conn=> { const ch = await conn.createChannel() const queue = ch.assertQueue(queueName, { durable: true }) if (queue) {