Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/whatsapp/services/chatwoot.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down Expand Up @@ -2102,7 +2108,7 @@ export class ChatwootService {
this.logger.verbose('qrcode success');
const fileData = Buffer.from(body?.qrcode.base64.replace('data:image/png;base64,', ''), 'base64');

const fileName = `${path.join(waInstance?.storePath, 'temp', `${`${instance}.png`}`)}`;
const fileName = `${path.join(waInstance?.storePath, 'temp', `${instance.instanceName}.png`)}`;

this.logger.verbose('temp file name: ' + fileName);

Expand Down