Skip to content

Commit b58fd78

Browse files
committed
fix(chatwoot): fix qrcode filename
1 parent b0e956c commit b58fd78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/whatsapp/services/chatwoot.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2102,7 +2102,7 @@ export class ChatwootService {
21022102
this.logger.verbose('qrcode success');
21032103
const fileData = Buffer.from(body?.qrcode.base64.replace('data:image/png;base64,', ''), 'base64');
21042104

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

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

0 commit comments

Comments
 (0)