Skip to content

Commit 945bcf5

Browse files
committed
feat(chatwoot): command to clearcache from chatwoot inbox
1 parent b0e956c commit 945bcf5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/whatsapp/services/chatwoot.service.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,6 +1195,12 @@ export class ChatwootService {
11951195
}
11961196
}
11971197

1198+
if (command === 'clearcache') {
1199+
this.logger.verbose('command clearcache found');
1200+
waInstance.clearCacheChatwoot();
1201+
await this.createBotMessage(instance, `✅ ${body.inbox.name} instance cache cleared.`, 'incoming');
1202+
}
1203+
11981204
if (command === 'status') {
11991205
this.logger.verbose('command status found');
12001206

0 commit comments

Comments
 (0)