Merge branch 'develop' of github.com:EvolutionAPI/evolution-api into develop

This commit is contained in:
Davidson Gomes
2024-01-07 19:11:07 -03:00
5 changed files with 102 additions and 2 deletions

View File

@@ -368,6 +368,8 @@ export class WAStartupService {
Object.assign(this.localChatwoot, { ...data, sign_delimiter: data.sign_msg ? data.sign_delimiter : null });
this.clearCacheChatwoot();
this.logger.verbose('Chatwoot set');
}
@@ -402,6 +404,14 @@ export class WAStartupService {
};
}
public clearCacheChatwoot() {
this.logger.verbose('Removing cache from chatwoot');
if (this.localChatwoot.enabled) {
this.chatwootService.getCache().deleteAll();
}
}
private async loadSettings() {
this.logger.verbose('Loading settings');
const data = await this.repository.settings.find(this.instanceName);