From 9945fe0fd8c43427f64fb9704814a258468ea550 Mon Sep 17 00:00:00 2001 From: devlikepro Date: Thu, 30 May 2024 12:31:25 +0700 Subject: [PATCH] [core] Remove unused vars --- src/config.service.ts | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/config.service.ts b/src/config.service.ts index 5e55a482..bdf01c83 100644 --- a/src/config.service.ts +++ b/src/config.service.ts @@ -131,27 +131,6 @@ export class WhatsappConfigService { return this.configService.get('WHATSAPP_API_KEY', ''); } - getDashboardEnabled(): boolean { - const value = this.configService.get('WAHA_DASHBOARD_ENABLED', 'true'); - return parseBool(value); - } - - getDashboardUsernamePassword(): [string, string] | null { - if (!this.getDashboardEnabled()) { - return null; - } - const user = this.configService.get('WAHA_DASHBOARD_USERNAME', 'waha'); - const password = this.configService.get('WAHA_DASHBOARD_PASSWORD', 'waha'); - if (!user || !password) { - console.log( - 'Please set up both WAHA_DASHBOARD_USERNAME and WAHA_DASHBOARD_PASSWORD ' + - 'to enable swagger authentication.', - ); - return null; - } - return [user, password]; - } - getHealthMediaFilesThreshold(): number { return this.configService.get( 'WHATSAPP_HEALTH_MEDIA_FILES_THRESHOLD_MB',