Skip to content

Commit

Permalink
fix sourceWebsocket
Browse files Browse the repository at this point in the history
  • Loading branch information
saithsab877 committed Dec 5, 2024
1 parent e87bf7d commit 8184835
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion handlers/ticket.go
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ func (th *ticketHandler) ProcessTicketReview(w http.ResponseWriter, r *http.Requ

ticketMsg := websocket.TicketMessage{
BroadcastType: "direct",
SourceSessionID: reviewReq.RequestUUID,
SourceSessionID: reviewReq.SourceWebsocket,
Message: fmt.Sprintf("Successful update of %s", reviewReq.Value.TicketUUID),
Action: "process",
TicketDetails: websocket.TicketData{
Expand Down
3 changes: 2 additions & 1 deletion utils/ticket_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ type TicketReviewRequest struct {
TicketUUID string `json:"ticketUUID" validate:"required"`
TicketDescription string `json:"ticketDescription" validate:"required"`
} `json:"value"`
RequestUUID string `json:"requestUUID"`
RequestUUID string `json:"requestUUID"`
SourceWebsocket string `json:"sourceWebsocket"`
}

func ValidateTicketReviewRequest(req *TicketReviewRequest) error {
Expand Down

0 comments on commit 8184835

Please sign in to comment.