mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-24 17:38:40 -06:00
ajustes rabbitmq
This commit is contained in:
parent
79189ac5d7
commit
7bc4c7b36e
@ -67,11 +67,11 @@ export const initQueues = (instanceName: string, events: string[]) => {
|
|||||||
const amqp = getAMQP();
|
const amqp = getAMQP();
|
||||||
|
|
||||||
const rabbitMode = rabbitConfig.MODE || 'isolated';
|
const rabbitMode = rabbitConfig.MODE || 'isolated';
|
||||||
let exchangeName = rabbitConfig.EXCHANGE_NAME ?? 'evolution_exchange';
|
const exchangeName = rabbitConfig.EXCHANGE_NAME ?? 'evolution_exchange';
|
||||||
|
|
||||||
const receivedEvents = events.map(parseEvtName);
|
const receivedEvents = events.map(parseEvtName);
|
||||||
if (rabbitMode === 'isolated') {
|
if (rabbitMode === 'isolated') {
|
||||||
exchangeName = instanceName ?? 'evolution_exchange';
|
// exchangeName = instanceName ?? 'evolution_exchange';
|
||||||
|
|
||||||
receivedEvents.forEach((event) => {
|
receivedEvents.forEach((event) => {
|
||||||
amqp.assertExchange(exchangeName, 'topic', {
|
amqp.assertExchange(exchangeName, 'topic', {
|
||||||
|
Loading…
Reference in New Issue
Block a user