We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2947269 + a84bc18 commit ade5f8dCopy full SHA for ade5f8d
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