Skip to content

Commit

Permalink
Fix incorrect response struct and request URI in client
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Feb 20, 2020
1 parent 240bebd commit b346da0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (c *Client) PostJob(j models.JobReq) (models.JobResp, error) {
func (c *Client) GetJobStatus(jobID string) (models.JobStatusResp, error) {
var out models.JobStatusResp
err := c.doHTTPReq(http.MethodGet,
fmt.Sprintf(uriDeleteJob, jobID), nil, nil, &out)
fmt.Sprintf(uriGetJobStatus, jobID), nil, nil, &out)
return out, err
}

Expand All @@ -96,8 +96,8 @@ func (c *Client) PostJobGroup(jobs models.GroupReq) (models.GroupResp, error) {
}

// GetGroupStatus fetches the status of a group of job.
func (c *Client) GetGroupStatus(groupID string) (models.GroupResp, error) {
var out models.GroupResp
func (c *Client) GetGroupStatus(groupID string) (models.GroupStatusResp, error) {
var out models.GroupStatusResp
err := c.doHTTPReq(http.MethodGet,
fmt.Sprintf(uriGetGroupStatus, groupID), nil, nil, &out)
return out, err
Expand Down

0 comments on commit b346da0

Please sign in to comment.