Change Patch to PatchString
This commit is contained in:
parent
bf30760baf
commit
5acbb39d8f
@ -20,8 +20,8 @@ type Request struct {
|
||||
PageSize int
|
||||
}
|
||||
|
||||
//Patch is a struct which holds the required fields to make a PATCH request
|
||||
type Patch struct {
|
||||
//PatchString is a struct which holds the required fields to make a PATCH request
|
||||
type PatchString struct {
|
||||
Op string `json:"op"`
|
||||
Path string `json:"path"`
|
||||
Value string `json:"value"`
|
||||
|
@ -600,8 +600,8 @@ func (cw *Site) GetBoards() (*[]Board, error) {
|
||||
|
||||
//AssignTicketToTeam will set the team/id of a ticket
|
||||
func (cw *Site) AssignTicketToTeam(ticketID, teamID int) (*Ticket, error) {
|
||||
patches := &[]Patch{}
|
||||
patch := &Patch{
|
||||
patches := &[]PatchString{}
|
||||
patch := &PatchString{
|
||||
Op: "replace",
|
||||
Path: "team/id",
|
||||
Value: strconv.Itoa(teamID)}
|
||||
|
Loading…
Reference in New Issue
Block a user