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

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