Skip to content

Commit 5b1b5ff

Browse files
committed
fix: bind applyFormatting method in processMessages to maintain context
1 parent 3960624 commit 5b1b5ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/integrations/chatbot/typebot/services/typebot.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export class TypebotService extends BaseChatbotService<TypebotModel, any> {
186186
messages,
187187
input,
188188
clientSideActions,
189-
this.applyFormatting,
189+
this.applyFormatting.bind(this),
190190
this.prismaRepository,
191191
).catch((err) => {
192192
console.error('Erro ao processar mensagens:', err);

0 commit comments

Comments
 (0)