[core] WPP - fix session folder
Release / WEBJS - chrome - amd64 - chrome (push) Waiting to run
Release / WEBJS - chromium - amd64 - latest (push) Waiting to run
Release / WEBJS - chromium - linux/arm64 - arm (push) Waiting to run
Release / GOWS - none - amd64 - gows (push) Waiting to run
Release / GOWS - none - linux/arm64 - gows-arm (push) Waiting to run
Release / NOWEB - none - amd64 - noweb (push) Waiting to run
Release / NOWEB - none - linux/arm64 - noweb-arm (push) Waiting to run
Release / WEBJS - chrome - amd64 - chrome (push) Waiting to run
Release / WEBJS - chromium - amd64 - latest (push) Waiting to run
Release / WEBJS - chromium - linux/arm64 - arm (push) Waiting to run
Release / GOWS - none - amd64 - gows (push) Waiting to run
Release / GOWS - none - linux/arm64 - gows-arm (push) Waiting to run
Release / NOWEB - none - amd64 - noweb (push) Waiting to run
Release / NOWEB - none - linux/arm64 - noweb-arm (push) Waiting to run
This commit is contained in:
1 parent
e885ea8e95
commit
e4f88771a8
1 file changed
+2
-1
@@ -129,6 +129,7 @@ import { IMediaEngineProcessor } from '@waha/core/media/IMediaEngineProcessor';
|
||||
import { IWPPAuthManager } from '@waha/core/engines/wpp/IWPPAuthManager';
|
||||
import { QR } from '@waha/core/QR';
|
||||
import { removeSingletonFiles } from '@waha/core/utils/chrome';
|
||||
import { getSessionNamespace } from '@waha/config';
|
||||
import { killProcessesByPatterns } from '@waha/core/utils/processes';
|
||||
import { DistinctAck } from '@waha/core/utils/reactive';
|
||||
import { isJidGroup, toCusFormat } from '@waha/core/utils/jids';
|
||||
@@ -212,7 +213,7 @@ export class WhatsappSessionWPPCore extends WhatsappSession {
|
||||
|
||||
protected getUserDataDir(): string {
|
||||
const base = process.env.WAHA_LOCAL_STORE_BASE_DIR || './.sessions';
|
||||
return `${base}/wpp/default/${this.name}`;
|
||||
return `${base}/${getSessionNamespace()}/${this.name}`;
|
||||
}
|
||||
|
||||
async start() {
|
||||
|
||||
Reference in new issue
Block a user