This commit is contained in:
Davidson Gomes
2024-03-27 13:21:39 -03:00
parent 0b23153316
commit ec7986420d
2 changed files with 5 additions and 5 deletions

View File

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