Skip to content

Commit

Permalink
Merge branch 'fix/urn-brain' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
Robi9 committed Oct 17, 2024
2 parents a0bf239 + b3e2e3a commit fbf4b25
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
8 changes: 8 additions & 0 deletions WENI-CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
1.4.0
----------
* Feat: WhatsApp Order Details

1.3.0
----------
* Add support for attachments in whatsapp flows

1.2.1
----------
* Fix validation for dynamic lists
Expand Down
10 changes: 5 additions & 5 deletions services/brain/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down

0 comments on commit fbf4b25

Please sign in to comment.