feat(chatwoot): command to clearcache from chatwoot inbox

This commit is contained in:
jaison-x 2024-02-05 13:13:23 -03:00
parent b0e956cfa9
commit 945bcf5fad

View File

@ -1195,6 +1195,12 @@ export class ChatwootService {
}
}
if (command === 'clearcache') {
this.logger.verbose('command clearcache found');
waInstance.clearCacheChatwoot();
await this.createBotMessage(instance, `${body.inbox.name} instance cache cleared.`, 'incoming');
}
if (command === 'status') {
this.logger.verbose('command status found');