Messages sent by the api now arrive in chatwoot

This commit is contained in:
Davidson Gomes 2023-08-18 09:33:17 -03:00
parent 680c92ecec
commit c4d41134b8
2 changed files with 9 additions and 3 deletions

View File

@ -24,7 +24,13 @@ export const initAMQP = () => {
const exchangeName = 'evolution_exchange';
channel.assertExchange(exchangeName, 'topic', { durable: false });
channel.assertExchange(exchangeName, 'topic', {
durable: true,
autoDelete: false,
arguments: {
queueType: 'quorum',
},
});
amqpChannel = channel;
logger.info('AMQP initialized');

View File

@ -601,9 +601,9 @@ export class WAStartupService {
amqp.assertExchange(exchangeName, 'topic', {
durable: true,
'auto-delete': false,
autoDelete: false,
arguments: {
'x-queue-type': 'quorum',
queueType: 'quorum',
},
});