Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vayras committed May 22, 2024
1 parent 3072ceb commit 0cd8db8
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions handlers/bounty.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,17 +229,17 @@ func (h *bountyHandler) CreateOrEditBounty(w http.ResponseWriter, r *http.Reques
bounty.Tribe = "None"
}

if bounty.PhaseUuid == nil {
w.WriteHeader(http.StatusBadRequest)
json.NewEncoder(w).Encode("PhaseUuid is a required field")
return
}

if bounty.PhasePriority == nil {
w.WriteHeader(http.StatusBadRequest)
json.NewEncoder(w).Encode("PhasePriority is a required field")
return
}
// if bounty.PhaseUuid == nil {
// w.WriteHeader(http.StatusBadRequest)
// json.NewEncoder(w).Encode("PhaseUuid is a required field")
// return
// }

// if bounty.PhasePriority == nil {
// w.WriteHeader(http.StatusBadRequest)
// json.NewEncoder(w).Encode("PhasePriority is a required field")
// return
// }

if bounty.Show == false && bounty.ID != 0 {
h.db.UpdateBountyBoolColumn(bounty, "show")
Expand Down

0 comments on commit 0cd8db8

Please sign in to comment.