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