Skip to content

Commit ac374ce

Browse files
authored
Merge pull request #111 from RianBrenoPolonini/main
Fix: qrcode trigger limit
2 parents 85bc33e + b34fb20 commit ac374ce

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)