mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2026-02-05 06:46:27 -06:00
fix: When requesting the pairing code, it also brings the qr code
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user