Skip to content

Commit

Permalink
Merge pull request #13 from TGoers-FNSB/dev
Browse files Browse the repository at this point in the history
v0.1.6
  • Loading branch information
TristanGoers authored Oct 6, 2023
2 parents a5a03d8 + 15dd77c commit 4d306b5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion invitations.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
2 changes: 1 addition & 1 deletion jobRoles.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
2 changes: 1 addition & 1 deletion timelogs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
2 changes: 1 addition & 1 deletion userScheduleExceptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
4 changes: 2 additions & 2 deletions workSchedules.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ 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)
}

func DeleteWorkSchedulesById(config Config, pathId string) (resp.WorkSchedules, error) {
path := fmt.Sprintf("/workschedules/%s", pathId)
response, _ := Delete(config, path, nil)
return resp.WorkSchedulesFromJSON(response)
}
}

0 comments on commit 4d306b5

Please sign in to comment.