Skip to content

Commit

Permalink
feat: Sending the ticket uuid when opening wenichats rooms
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandro-Meireles committed Dec 23, 2024
1 parent c094c64 commit a3754f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions services/tickets/wenichats/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ func (c *Client) GetQueues(params *url.Values) (*QueuesResponse, *httpx.Trace, e
}

type RoomRequest struct {
TicketUUID string `json:"ticket_uuid,omitempty"`
QueueUUID string `json:"queue_uuid,omitempty"`
UserEmail string `json:"user_email,omitempty"`
SectorUUID string `json:"sector_uuid,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions services/tickets/wenichats/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ func (s *service) Open(session flows.Session, topic *flows.Topic, body string, a

roomData.SectorUUID = s.sectorUUID
roomData.QueueUUID = string(topic.QueueUUID())
roomData.TicketUUID = string(ticket.UUID())
preferredURN := session.Contact().PreferredURN()
if preferredURN != nil {
roomData.Contact.URN = preferredURN.URN().String()
Expand Down

0 comments on commit a3754f8

Please sign in to comment.