no message

This commit is contained in:
AdisakKanthawilang 2024-10-30 13:22:10 +07:00
parent a63a6bd028
commit e3be2c4c62

View file

@ -32,14 +32,14 @@ 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
createConsumer(queue_org, channel, handler_org); // createConsumer(queue_org, channel, handler_org);
// createConsumer(queue2, channel, handler2); // createConsumer(queue2, channel, handler2);
} }