This commit is contained in:
Davidson Gomes
2024-03-27 09:54:05 -03:00
parent 70d4eb393f
commit 950803b2aa
3 changed files with 6 additions and 6 deletions

View File

@@ -13,6 +13,7 @@ import {
Database,
HttpServer,
Log,
Rabbitmq,
Sqs,
Webhook,
Websocket,
@@ -685,7 +686,7 @@ export class WAStartupService {
if (amqp) {
if (Array.isArray(rabbitmqLocal) && rabbitmqLocal.includes(we)) {
const exchangeName = this.instanceName ?? 'evolution_exchange';
const exchangeName = this.configService.get<Rabbitmq>('RABBITMQ').EXCHANGE_NAME ?? this.instanceName;
amqp.assertExchange(exchangeName, 'topic', {
durable: true,