We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f30c7b commit 918cf29Copy full SHA for 918cf29
src/api/services/monitor.service.ts
@@ -148,7 +148,9 @@ export class WAMonitoringService {
148
}
149
150
public async cleaningStoreData(instanceName: string) {
151
- execSync(`rm -rf ${join(STORE_DIR, 'chatwoot', instanceName + '*')}`);
+ if (this.configService.get<Chatwoot>('CHATWOOT').ENABLED) {
152
+ execSync(`rm -rf ${join(STORE_DIR, 'chatwoot', instanceName + '*')}`);
153
+ }
154
155
const instance = await this.prismaRepository.instance.findFirst({
156
where: { name: instanceName },
0 commit comments