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