From 14529f2c3580445a892a46dcdfdc25215e211d1a Mon Sep 17 00:00:00 2001 From: Davidson Gomes Date: Tue, 25 Jul 2023 12:47:35 -0300 Subject: [PATCH] fix: When requesting the pairing code, it also brings the qr code --- CHANGELOG.md | 1 + src/whatsapp/services/whatsapp.service.ts | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a2f5b55..bb0fd7bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * Fixed chatwoot line wrap issue * Solved receive location in chatwoot +* When requesting the pairing code, it also brings the qr code # 1.4.3 (2023-07-25 10:51) diff --git a/src/whatsapp/services/whatsapp.service.ts b/src/whatsapp/services/whatsapp.service.ts index 8959197e..370d9b64 100644 --- a/src/whatsapp/services/whatsapp.service.ts +++ b/src/whatsapp/services/whatsapp.service.ts @@ -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, };