From 819ef70b7bf8b21a40ed412a1961d1fb71853eac Mon Sep 17 00:00:00 2001 From: Davidson Gomes Date: Sat, 3 Aug 2024 13:20:22 -0300 Subject: [PATCH] fix: Resolve issue with connecting to instance Corrected an issue with connecting to the instance by updating the connection status in the Whatsapp Baileys service. Modified files: - Whatsapp Baileys service (src/api/services/channels/whatsapp.baileys.service.ts) --- src/api/services/channels/whatsapp.baileys.service.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/api/services/channels/whatsapp.baileys.service.ts b/src/api/services/channels/whatsapp.baileys.service.ts index c113855a..7507b83c 100644 --- a/src/api/services/channels/whatsapp.baileys.service.ts +++ b/src/api/services/channels/whatsapp.baileys.service.ts @@ -366,6 +366,13 @@ export class BaileysStartupService extends ChannelStartupService { qrcode, ), ); + + await this.prismaRepository.instance.update({ + where: { id: this.instanceId }, + data: { + connectionStatus: 'connecting', + }, + }); } if (connection) {