Skip to content

Commit

Permalink
Using URN identity for brain
Browse files Browse the repository at this point in the history
  • Loading branch information
Robi9 committed Oct 17, 2024
1 parent b6d9554 commit b3e2e3a
Showing 1 changed file with 5 additions and 5 deletions.
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 b3e2e3a

Please sign in to comment.