From a6fc090acd351784a3866a637048d7da0f6778e1 Mon Sep 17 00:00:00 2001 From: leifermendez Date: Fri, 21 Jun 2024 10:28:53 +0200 Subject: [PATCH] feat: add api release --- packages/provider-baileys/src/bailey.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) }