ajustes rabbitmq

This commit is contained in:
Davidson Gomes 2024-03-08 11:09:08 -03:00
parent 79189ac5d7
commit 7bc4c7b36e

View File

@ -67,11 +67,11 @@ export const initQueues = (instanceName: string, events: string[]) => {
const amqp = getAMQP();
const rabbitMode = rabbitConfig.MODE || 'isolated';
let exchangeName = rabbitConfig.EXCHANGE_NAME ?? 'evolution_exchange';
const exchangeName = rabbitConfig.EXCHANGE_NAME ?? 'evolution_exchange';
const receivedEvents = events.map(parseEvtName);
if (rabbitMode === 'isolated') {
exchangeName = instanceName ?? 'evolution_exchange';
// exchangeName = instanceName ?? 'evolution_exchange';
receivedEvents.forEach((event) => {
amqp.assertExchange(exchangeName, 'topic', {