diff --git a/packages/provider-baileys/src/bailey.ts b/packages/provider-baileys/src/bailey.ts index e81ae4e5..eb9ff997 100644 --- a/packages/provider-baileys/src/bailey.ts +++ b/packages/provider-baileys/src/bailey.ts @@ -62,8 +62,8 @@ class BaileysProvider extends ProviderClass { this.globalVendorArgs = { ...this.globalVendorArgs, ...args } } - public static async releaseSessionFiles(name: string) { - const NAME_DIR_SESSION = `${name}_sessions` + public async releaseSessionFiles() { + const NAME_DIR_SESSION = `${this.globalVendorArgs.name}_sessions` const idTimer = await releaseTmp(NAME_DIR_SESSION, 0) clearInterval(idTimer) }