Skip to content

Commit b34fb20

Browse files
committed
fix: qrcode trigger limit
1 parent 85bc33e commit b34fb20

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/whatsapp/services/whatsapp.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ export class WAStartupService {
339339
lastDisconnect,
340340
}: Partial<ConnectionState>) {
341341
if (qr) {
342-
if (this.qrCode === this.configService.get<QrCode>('QRCODE').LIMIT) {
342+
if (this.qrCode.count === this.configService.get<QrCode>('QRCODE').LIMIT) {
343343
this.sendDataWebhook('qrcodeUpdated', {
344344
message: 'QR code limit reached, please login again',
345345
statusCode: DisconnectReason.badSession,

0 commit comments

Comments
 (0)