fix(all): Fix answers with dialog id working again.

This commit is contained in:
Rodrigo Rodriguez 2023-07-25 08:32:48 -03:00
parent a24648cc9f
commit f34c7b1ac5

View file

@ -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: