Update typebot.service.ts

This commit is contained in:
Luis-Fernando 2024-03-28 14:51:03 -03:00 committed by GitHub
parent 304be2510a
commit 324c5078d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -285,7 +285,7 @@ export class TypebotService {
listResponseMessage: msg.listResponseMessage?.singleSelectReply?.selectedRowId,
responseRowId: msg.listResponseMessage?.singleSelectReply?.selectedRowId,
// Adiciona uma nova propriedade messageType para identificar o tipo da mensagem
messageType: Object.keys(types).find(key => types[key] !== undefined) || 'unknown'
//messageType: Object.keys(types).find(key => types[key] !== undefined) || 'unknown'
};
this.logger.verbose('type message: ' + JSON.stringify(types));