diff --git a/src/services/webhook.service.ts b/src/services/webhook.service.ts index 4b99937..a061d9e 100644 --- a/src/services/webhook.service.ts +++ b/src/services/webhook.service.ts @@ -13,15 +13,10 @@ export class WebhookService { private readonly rabbitMQService: RabbitMQService, private configService: ConfigService, ) { - this.smsMoQueue = this.configService.get( - 'RABBITMQ_QUEUE_WEBHOOK', - ) as string; - this.heQueue = this.configService.get( - 'RABBITMQ_QUEUE_NOTIFICATION', - ) as string; - this.subscriptionEventQueue = this.configService.get( - 'RABBITMQ_QUEUE_PAYMENT', - ) as string; + const config = this.configService.get('appConfig.queues'); + this.smsMoQueue = config.smsmo as string; + this.heQueue = config.he as string; + this.subscriptionEventQueue = config.subscription as string; } async smsMoNotification(