From 5acbb39d8f530901380330bea7145f1c97682a72 Mon Sep 17 00:00:00 2001 From: Steven Polley Date: Sun, 29 Jul 2018 12:22:08 -0600 Subject: [PATCH] Change Patch to PatchString --- 3.0/connectwise/requests.go | 4 ++-- 3.0/connectwise/service.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/3.0/connectwise/requests.go b/3.0/connectwise/requests.go index 14fe73b..e59ef3a 100644 --- a/3.0/connectwise/requests.go +++ b/3.0/connectwise/requests.go @@ -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"` diff --git a/3.0/connectwise/service.go b/3.0/connectwise/service.go index d12135d..8d9cd3e 100644 --- a/3.0/connectwise/service.go +++ b/3.0/connectwise/service.go @@ -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)}