fix: Fixed chatwoot line wrap issue

This commit is contained in:
Davidson Gomes
2023-07-25 11:52:26 -03:00
parent de676041df
commit 4c006970a2
3 changed files with 9 additions and 3 deletions

View File

@@ -1125,12 +1125,12 @@ export class ChatwootService {
}
if (body.message_type === 'template' && body.event === 'message_created') {
this.logger.verbose('check if is csat');
this.logger.verbose('check if is template');
const data: SendTextDto = {
number: chatId,
textMessage: {
text: body.content,
text: body.content.replace(/\\\r\n|\\\n|\n/g, '\n'),
},
options: {
delay: 1200,