mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-15 19:52:54 -06:00
feat(chatwoot): command to clearcache from chatwoot inbox
This commit is contained in:
parent
b0e956cfa9
commit
945bcf5fad
@ -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');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user