Merge pull request #983 from Richards0nd/fix

refactor: Update content_attributes in ChatwootService
This commit is contained in:
Davidson Gomes 2024-10-17 10:17:03 -03:00 committed by GitHub
commit 968cc25d37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -954,9 +954,10 @@ export class ChatwootService {
const replyToIds = await this.getReplyToIds(messageBody, instance);
if (replyToIds.in_reply_to || replyToIds.in_reply_to_external_id) {
data.append('content_attributes', {
...replyToIds,
});
const content = JSON.stringify({
...replyToIds
})
data.append('content_attributes', content);
}
}