From f8fc54dfb0e50b6fa8378ef290b0d942ed3939b9 Mon Sep 17 00:00:00 2001 From: Paulo Bernardo Date: Thu, 10 Oct 2024 19:18:51 -0300 Subject: [PATCH 1/3] release: 1.3.0 --- WENI-CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/WENI-CHANGELOG.md b/WENI-CHANGELOG.md index 4c4cc1b6c..a9e7ad1b1 100644 --- a/WENI-CHANGELOG.md +++ b/WENI-CHANGELOG.md @@ -1,3 +1,7 @@ +1.3.0 +---------- + * Add support for attachments in whatsapp flows + 1.2.1 ---------- * Fix validation for dynamic lists From b96aeafa9b4f51e37afab99e93bcdc4fd16c70e9 Mon Sep 17 00:00:00 2001 From: Paulo Bernardo Date: Fri, 11 Oct 2024 19:07:24 -0300 Subject: [PATCH 2/3] Update WENI-CHANGELOG.md --- WENI-CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/WENI-CHANGELOG.md b/WENI-CHANGELOG.md index a9e7ad1b1..6e3ed298d 100644 --- a/WENI-CHANGELOG.md +++ b/WENI-CHANGELOG.md @@ -1,3 +1,7 @@ +1.4.0 +---------- + * Feat: WhatsApp Order Details + 1.3.0 ---------- * Add support for attachments in whatsapp flows From b3e2e3ac4cc52bf872fb9f7f9619f341a0367f84 Mon Sep 17 00:00:00 2001 From: Robi9 Date: Thu, 17 Oct 2024 17:38:10 -0300 Subject: [PATCH 3/3] Using URN identity for brain --- services/brain/service.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/services/brain/service.go b/services/brain/service.go index 02a786fbd..8a7191407 100644 --- a/services/brain/service.go +++ b/services/brain/service.go @@ -50,14 +50,14 @@ func NewService(httpClient *http.Client, httpRetries *httpx.RetryConfig, httpAcc func (s *service) Call(session flows.Session, projectUUID uuids.UUID, text string, contactURN urns.URN, attachments []utils.Attachment) (*flows.BrainCall, error) { body := struct { - ProjectUUID uuids.UUID `json:"project_uuid"` - Text string `json:"text"` - ContactURN urns.URN `json:"contact_urn"` - Attachments []utils.Attachment `json:"attachments"` + ProjectUUID uuids.UUID `json:"project_uuid"` + Text string `json:"text"` + ContactURN urns.URN `json:"contact_urn"` + Attachments []utils.Attachment `json:"attachments"` }{ ProjectUUID: projectUUID, Text: text, - ContactURN: contactURN, + ContactURN: contactURN.Identity(), Attachments: attachments, }