From 26ff0b634fc7df6141eb79c83b73be07227dc7ef Mon Sep 17 00:00:00 2001 From: Judson Cairo Date: Sun, 21 Apr 2024 16:49:15 -0300 Subject: [PATCH] Revert "Update current inbox if exists" This reverts commit f44ab0f67872073d14b3b3db19907ee5a4c13d29. --- .../chatwoot/services/chatwoot.service.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/api/integrations/chatwoot/services/chatwoot.service.ts b/src/api/integrations/chatwoot/services/chatwoot.service.ts index b57fee49..e28821bb 100644 --- a/src/api/integrations/chatwoot/services/chatwoot.service.ts +++ b/src/api/integrations/chatwoot/services/chatwoot.service.ts @@ -216,19 +216,6 @@ export class ChatwootService { } inboxId = inbox.id; - const data = { - type: 'api', - webhook_url: webhookUrl, - }; - await client.inboxes.update({ - id: inboxId, - accountId: this.provider.account_id, - data: { - enable_auto_assignment: false, - name: inboxName, - channel: data as any, - }, - }); } this.logger.verbose('find contact in chatwoot and create if not exists');