Skip to content

Commit

Permalink
Add ticket_id to ticket updates response
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Oct 15, 2023
1 parent 133355e commit c925903
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/api/handlers/responses.go
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,7 @@ type TicketUpdate struct {
ID int64 `json:"id"`
Level int64 `json:"level"`
Timestamp time.Time `json:"timestamp"`
TicketId int64 `json:"ticket_id"`
Ticketer string `json:"ticketer"`
Address string `json:"address"`
Amount string `json:"amount"`
Expand All @@ -662,6 +663,7 @@ func NewTicketUpdateFromModel(update ticket.TicketUpdate) TicketUpdate {
ID: update.ID,
Timestamp: update.Timestamp.UTC(),
Level: update.Level,
TicketId: update.TicketId,
Ticketer: update.Ticket.Ticketer.Address,
Address: update.Account.Address,
Amount: update.Amount.String(),
Expand Down

0 comments on commit c925903

Please sign in to comment.