fix: bind applyFormatting method in processMessages to maintain context

This commit is contained in:
Santosl2 2025-06-29 20:23:31 -03:00
parent 39606240da
commit 5b1b5ff9d2
No known key found for this signature in database
GPG Key ID: 6D81780D2C0364A0

View File

@ -186,7 +186,7 @@ export class TypebotService extends BaseChatbotService<TypebotModel, any> {
messages,
input,
clientSideActions,
this.applyFormatting,
this.applyFormatting.bind(this),
this.prismaRepository,
).catch((err) => {
console.error('Erro ao processar mensagens:', err);