fix: remove wildcard

This commit is contained in:
Jefferson Felix 2025-04-02 12:04:07 -03:00
parent abda9e2113
commit 3f8d89e970

View File

@ -168,7 +168,7 @@ export class WAMonitoringService {
public async cleaningStoreData(instanceName: string) {
if (this.configService.get<Chatwoot>('CHATWOOT').ENABLED) {
const instancePath = join(STORE_DIR, 'chatwoot', `${instanceName}*`);
const instancePath = join(STORE_DIR, 'chatwoot', instanceName);
execFileSync('rm', ['-rf', instancePath]);
}