Skip to content

Commit

Permalink
feat: add ticket UUID and group to bounty card response
Browse files Browse the repository at this point in the history
  • Loading branch information
aliraza556 committed Jan 17, 2025
1 parent 9af789b commit 1fe6555
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions db/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,8 @@ const (

type BountyCard struct {
BountyID uint `json:"id"`
TicketUUID *uuid.UUID `json:"ticket_uuid,omitempty"`
TicketGroup *uuid.UUID `json:"ticket_group,omitempty"`
Title string `json:"title"`
AssigneePic string `json:"assignee_img,omitempty"`
Assignee string `json:"assignee"`
Expand Down
2 changes: 2 additions & 0 deletions handlers/bounty.go
Original file line number Diff line number Diff line change
Expand Up @@ -1593,6 +1593,8 @@ func (h *bountyHandler) GenerateTicketCardResponse(workspaceUuid string) ([]db.B

ticketCard := db.BountyCard{
BountyID: bountyID,
TicketUUID: &ticket.UUID,
TicketGroup: ticket.TicketGroup,
Title: ticket.Name,
AssigneePic: "",
Assignee: "",
Expand Down

0 comments on commit 1fe6555

Please sign in to comment.