Skip to content

Commit

Permalink
refactor: Make RabbitMQ prefix key optional in configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidsonGomes committed Feb 4, 2025
1 parent b143363 commit 9a72b90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/env.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export type Rabbitmq = {
EXCHANGE_NAME: string;
GLOBAL_ENABLED: boolean;
EVENTS: EventsRabbitmq;
PREFIX_KEY: string;
PREFIX_KEY?: string;
};

export type Sqs = {
Expand Down Expand Up @@ -356,7 +356,7 @@ export class ConfigService {
RABBITMQ: {
ENABLED: process.env?.RABBITMQ_ENABLED === 'true',
GLOBAL_ENABLED: process.env?.RABBITMQ_GLOBAL_ENABLED === 'true',
PREFIX_KEY: process.env?.RABBITMQ_PREFIX_KEY || 'evolution',
PREFIX_KEY: process.env?.RABBITMQ_PREFIX_KEY,
EXCHANGE_NAME: process.env?.RABBITMQ_EXCHANGE_NAME || 'evolution_exchange',
URI: process.env.RABBITMQ_URI || '',
EVENTS: {
Expand Down

0 comments on commit 9a72b90

Please sign in to comment.