From 29b976cb2180c0d517970aa31e7c4da34e508a44 Mon Sep 17 00:00:00 2001 From: Vilsonei Machado Date: Fri, 5 Jul 2024 22:53:15 -0300 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=A3o=20da=20atualiza=C3=A7=C3=A3o?= =?UTF-8?q?=20de=20Webhooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/whatsapp/services/whatsapp.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/whatsapp/services/whatsapp.service.ts b/src/whatsapp/services/whatsapp.service.ts index eaf6c1bb..0e2a136f 100644 --- a/src/whatsapp/services/whatsapp.service.ts +++ b/src/whatsapp/services/whatsapp.service.ts @@ -228,7 +228,7 @@ export class WAStartupService { let update: typeof this.webhook; if (find) { - update = await this.repository.updateWebhook(this.instance.id, data); + update = await this.repository.updateWebhook(find.id, data); } else { update = await this.repository.webhook.create({ data: {