From 1ed8d6854d324664782d6477cd07c803a9faefab Mon Sep 17 00:00:00 2001 From: KurtisMelkisedec Date: Thu, 30 Oct 2025 23:27:40 +0000 Subject: [PATCH] fixing webhookservice config --- src/services/webhook.service.ts | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) 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(