mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-24 17:38:40 -06:00
fix: clean instance without chatwoot
This commit is contained in:
parent
9f30c7b160
commit
918cf295ad
@ -148,7 +148,9 @@ export class WAMonitoringService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async cleaningStoreData(instanceName: string) {
|
public async cleaningStoreData(instanceName: string) {
|
||||||
execSync(`rm -rf ${join(STORE_DIR, 'chatwoot', instanceName + '*')}`);
|
if (this.configService.get<Chatwoot>('CHATWOOT').ENABLED) {
|
||||||
|
execSync(`rm -rf ${join(STORE_DIR, 'chatwoot', instanceName + '*')}`);
|
||||||
|
}
|
||||||
|
|
||||||
const instance = await this.prismaRepository.instance.findFirst({
|
const instance = await this.prismaRepository.instance.findFirst({
|
||||||
where: { name: instanceName },
|
where: { name: instanceName },
|
||||||
|
Loading…
Reference in New Issue
Block a user