From 5b1b5ff9d20bbe0b4d129d937ef07a2114c6ce0b Mon Sep 17 00:00:00 2001 From: Santosl2 Date: Sun, 29 Jun 2025 20:23:31 -0300 Subject: [PATCH] fix: bind applyFormatting method in processMessages to maintain context --- .../integrations/chatbot/typebot/services/typebot.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/integrations/chatbot/typebot/services/typebot.service.ts b/src/api/integrations/chatbot/typebot/services/typebot.service.ts index 01346fa6..e7ae24e6 100644 --- a/src/api/integrations/chatbot/typebot/services/typebot.service.ts +++ b/src/api/integrations/chatbot/typebot/services/typebot.service.ts @@ -186,7 +186,7 @@ export class TypebotService extends BaseChatbotService { messages, input, clientSideActions, - this.applyFormatting, + this.applyFormatting.bind(this), this.prismaRepository, ).catch((err) => { console.error('Erro ao processar mensagens:', err);