Change Patch to PatchString

This commit is contained in:
Steven Polley 2018-07-29 12:22:08 -06:00
parent bf30760baf
commit 5acbb39d8f
2 changed files with 4 additions and 4 deletions

View File

@ -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"`

View File

@ -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)}