From f34c7b1ac5227f27d2fae3b55810e38c493d52e6 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Tue, 25 Jul 2023 08:32:48 -0300 Subject: [PATCH] fix(all): Fix answers with dialog id working again. --- packages/whatsapp.gblib/services/WhatsappDirectLine.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts index 0fa4afbe..37238963 100644 --- a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts +++ b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts @@ -276,8 +276,7 @@ export class WhatsappDirectLine extends GBService { public async check() { switch (this.provider) { case 'GeneralBots': - const state = this.customClient.getState(); - GBLog.info(`GBWhatsapp: Status: ${state}`); + const state = await this.customClient.getState(); return state === 'CONNECTED'; default: