From 15dd77ccbbe46a90666966b9470f5b75ec22bf1b Mon Sep 17 00:00:00 2001 From: Tristan Goers Date: Fri, 6 Oct 2023 13:35:44 -0800 Subject: [PATCH] v0.1.6 --- invitations.go | 2 +- jobRoles.go | 2 +- timelogs.go | 2 +- userScheduleExceptions.go | 2 +- workSchedules.go | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/invitations.go b/invitations.go index 0c3e560..cc5d332 100644 --- a/invitations.go +++ b/invitations.go @@ -21,7 +21,7 @@ func CreateInvitation(config Config, params params.CreateInvitations) (resp.Invi if err != nil { log.Println(err) } - response, _ := Get(config, path, body) + response, _ := Post(config, path, body) return resp.InvitationsFromJSON(response) } diff --git a/jobRoles.go b/jobRoles.go index 659bd7a..b367c67 100644 --- a/jobRoles.go +++ b/jobRoles.go @@ -44,6 +44,6 @@ func ModifyJobRoles(config Config, params params.ModifyJobRoles, pathId string) func DeleteJobRoles(config Config, pathId string) (resp.JobRoles, error) { path := fmt.Sprintf("/jobroles/%s", pathId) - response, _ := Put(config, path, nil) + response, _ := Delete(config, path, nil) return resp.JobRolesFromJSON(response) } \ No newline at end of file diff --git a/timelogs.go b/timelogs.go index f819495..c99a0b9 100644 --- a/timelogs.go +++ b/timelogs.go @@ -92,6 +92,6 @@ func ModifyTimelogsByTask(config Config, params params.ModifyTimelogs, pathId st func DeleteTimelogsById(config Config, pathId string) (resp.Timelogs, error) { path := fmt.Sprintf("/timelogs/%s", pathId) - response, _ := Put(config, path, nil) + response, _ := Delete(config, path, nil) return resp.TimelogsFromJSON(response) } \ No newline at end of file diff --git a/userScheduleExceptions.go b/userScheduleExceptions.go index d7f3307..8e65061 100644 --- a/userScheduleExceptions.go +++ b/userScheduleExceptions.go @@ -41,7 +41,7 @@ func ModifyUserScheduleExceptions(config Config, params params.ModifyUserSchedul if err != nil { log.Println(err) } - response, _ := Post(config, path, body) + response, _ := Put(config, path, body) return resp.UserScheduleExceptionsFromJSON(response) } diff --git a/workSchedules.go b/workSchedules.go index fe7113e..4e07471 100644 --- a/workSchedules.go +++ b/workSchedules.go @@ -45,7 +45,7 @@ func ModifyWorkSchedulesById(config Config, params params.ModifyWorkSchedules, p if err != nil { log.Println(err) } - response, _ := Get(config, path, body) + response, _ := Put(config, path, body) return resp.WorkSchedulesFromJSON(response) } @@ -53,4 +53,4 @@ func DeleteWorkSchedulesById(config Config, pathId string) (resp.WorkSchedules, path := fmt.Sprintf("/workschedules/%s", pathId) response, _ := Delete(config, path, nil) return resp.WorkSchedulesFromJSON(response) -} \ No newline at end of file +}