Skip to content

Commit 968cc25

Browse files
Merge pull request #983 from Richards0nd/fix
refactor: Update content_attributes in ChatwootService
2 parents ec2b7f9 + aa8396d commit 968cc25

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -954,9 +954,10 @@ export class ChatwootService {
954954
const replyToIds = await this.getReplyToIds(messageBody, instance);
955955

956956
if (replyToIds.in_reply_to || replyToIds.in_reply_to_external_id) {
957-
data.append('content_attributes', {
958-
...replyToIds,
959-
});
957+
const content = JSON.stringify({
958+
...replyToIds
959+
})
960+
data.append('content_attributes', content);
960961
}
961962
}
962963

0 commit comments

Comments
 (0)