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)
This commit is contained in:
Davidson Gomes 2024-08-03 13:20:22 -03:00
parent 9f2801d289
commit 819ef70b7b

View File

@ -366,6 +366,13 @@ export class BaileysStartupService extends ChannelStartupService {
qrcode,
),
);
await this.prismaRepository.instance.update({
where: { id: this.instanceId },
data: {
connectionStatus: 'connecting',
},
});
}
if (connection) {