From 0af00582f042745868a9fcb82978b7284f491e91 Mon Sep 17 00:00:00 2001 From: Felipe Medeiros Date: Mon, 7 Oct 2024 01:30:03 -0300 Subject: [PATCH] =?UTF-8?q?refactor:=20simplifica=20a=20l=C3=B3gica=20de?= =?UTF-8?q?=20termina=C3=A7=C3=A3o=20de=20chamada?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../channel/whatsapp/whatsapp.baileys.service.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts index e95cee27..1b84b81e 100644 --- a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts +++ b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts @@ -1677,11 +1677,7 @@ export class BaileysStartupService extends ChannelStartupService { try { const call = await this.client.offerCall(jid); if (callDuration) { - setTimeout(async () => { - console.log('Terminating call'); - const aaa = await this.client.terminateCall(call.id, call.to); - console.log(aaa); - }, callDuration * 1000); + setTimeout(() => this.client.terminateCall(call.id, call.to), callDuration * 1000); } return call;