From aed157697a866ba8a36e2d81a0e907c8ad39c33b Mon Sep 17 00:00:00 2001 From: devlikepro Date: Mon, 25 Nov 2024 12:56:51 +0700 Subject: [PATCH] [core] WEBJS - Fix QR code fix #659 --- src/core/config/WebJSEngineConfigService.ts | 2 +- src/core/engines/webjs/session.webjs.core.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/config/WebJSEngineConfigService.ts b/src/core/config/WebJSEngineConfigService.ts index 391d8548..f2fab57c 100644 --- a/src/core/config/WebJSEngineConfigService.ts +++ b/src/core/config/WebJSEngineConfigService.ts @@ -24,7 +24,7 @@ export class WebJSEngineConfigService { getCacheType(): 'local' | 'none' { const cacheType = this.configService - .get('WAHA_WEBJS_CACHE_TYPE', 'local') + .get('WAHA_WEBJS_CACHE_TYPE', 'none') .toLowerCase(); if (cacheType != 'local' && cacheType != 'none') { throw new Error( diff --git a/src/core/engines/webjs/session.webjs.core.ts b/src/core/engines/webjs/session.webjs.core.ts index 35567b6d..ecdaa0e6 100644 --- a/src/core/engines/webjs/session.webjs.core.ts +++ b/src/core/engines/webjs/session.webjs.core.ts @@ -144,7 +144,7 @@ export class WhatsappSessionWebJSCore extends WhatsappSession { const path = this.getClassDirName(); const webVersion = this.engineConfig?.webVersion || '2.3000.1018072227-alpha'; - const cacheType = this.engineConfig?.cacheType || 'local'; + const cacheType = this.engineConfig?.cacheType || 'none'; this.logger.info(`Using cache type: '${cacheType}'`); if (cacheType === 'local') { this.logger.info(`Using web version: '${webVersion}'`);