This commit is contained in:
AdisakKanthawilang 2024-12-24 09:12:12 +07:00
parent 079362b1d0
commit 0122d62614

View file

@ -36,9 +36,9 @@ export async function init() {
}); });
}; };
// sendToQueueOrg = (payload: any, persistent = true) => { sendToQueueOrg = (payload: any, persistent = true) => {
// channel.sendToQueue(queue_org, Buffer.from(JSON.stringify(payload)), { persistent }); channel.sendToQueue(queue_org, Buffer.from(JSON.stringify(payload)), { persistent });
// }; };
console.log("[AMQ] Listening for message..."); console.log("[AMQ] Listening for message...");
createConsumer(queue, channel, handler), //----> (3) Process Consumer createConsumer(queue, channel, handler), //----> (3) Process Consumer