fix: When requesting the pairing code, it also brings the qr code

This commit is contained in:
Davidson Gomes 2023-07-25 12:47:35 -03:00
parent 89f40d54d9
commit 14529f2c35
2 changed files with 2 additions and 5 deletions

View File

@ -4,6 +4,7 @@
* Fixed chatwoot line wrap issue * Fixed chatwoot line wrap issue
* Solved receive location in chatwoot * Solved receive location in chatwoot
* When requesting the pairing code, it also brings the qr code
# 1.4.3 (2023-07-25 10:51) # 1.4.3 (2023-07-25 10:51)

View File

@ -242,13 +242,9 @@ export class WAStartupService {
public get qrCode(): wa.QrCode { public get qrCode(): wa.QrCode {
this.logger.verbose('Getting qrcode'); this.logger.verbose('Getting qrcode');
if (this.instance.qrcode?.pairingCode) {
return {
pairingCode: this.instance.qrcode?.pairingCode,
};
}
return { return {
pairingCode: this.instance.qrcode?.pairingCode,
code: this.instance.qrcode?.code, code: this.instance.qrcode?.code,
base64: this.instance.qrcode?.base64, base64: this.instance.qrcode?.base64,
}; };