mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-18 13:06:32 -06:00
fix(chatwoot): fix qrcode filename
This commit is contained in:
parent
b0e956cfa9
commit
b58fd78450
@ -2102,7 +2102,7 @@ export class ChatwootService {
|
|||||||
this.logger.verbose('qrcode success');
|
this.logger.verbose('qrcode success');
|
||||||
const fileData = Buffer.from(body?.qrcode.base64.replace('data:image/png;base64,', ''), 'base64');
|
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);
|
this.logger.verbose('temp file name: ' + fileName);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user