Skip to content

Commit

Permalink
Merge pull request #2569 from MahtabBukhari/update_updateTicket_handler
Browse files Browse the repository at this point in the history
Update function updateTicket
  • Loading branch information
humansinstitute authored Feb 19, 2025
2 parents 11c9294 + 8779d50 commit 17a4314
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions handlers/ticket.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ func (th *ticketHandler) UpdateTicket(w http.ResponseWriter, r *http.Request) {
Dependency: updateRequest.Ticket.Dependency,
Description: updateRequest.Ticket.Description,
Status: updateRequest.Ticket.Status,
Amount: updateRequest.Ticket.Amount,
Category: updateRequest.Ticket.Category,
Version: 1,
CreatedAt: time.Now(),
UpdatedAt: time.Now(),
Expand All @@ -163,6 +165,8 @@ func (th *ticketHandler) UpdateTicket(w http.ResponseWriter, r *http.Request) {
Dependency: updateRequest.Ticket.Dependency,
Description: updateRequest.Ticket.Description,
Status: updateRequest.Ticket.Status,
Amount: updateRequest.Ticket.Amount,
Category: updateRequest.Ticket.Category,
Version: existingTicket.Version + 1,
Author: updateRequest.Ticket.Author,
AuthorID: updateRequest.Ticket.AuthorID,
Expand Down

0 comments on commit 17a4314

Please sign in to comment.