This commit is contained in:
Davidson Gomes 2024-03-08 13:48:38 -03:00
parent 55811a39a5
commit 826e818802

View File

@ -73,12 +73,12 @@ export const initQueues = (instanceName: string, events: string[]) => {
if (rabbitMode === 'isolated') {
exchangeName = instanceName ?? 'evolution_exchange';
receivedEvents.forEach((event) => {
amqp.assertExchange(exchangeName, 'topic', {
durable: true,
autoDelete: false,
});
receivedEvents.forEach((event) => {
const queueName = `${instanceName}.${event}`;
amqp.assertQueue(queueName, {
durable: true,