Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

Commit

Permalink
Fix the wcloud client
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwilkie committed Jul 18, 2016
1 parent 3925eb6 commit f2f4e5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/wcloud/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func list(c Client, args []string) {
}
through := time.Now()
from := through.Add(-*since)
deployments, err := c.GetDeployments(through.Unix(), from.Unix())
deployments, err := c.GetDeployments(from.Unix(), through.Unix())
if err != nil {
fmt.Println(err.Error())
os.Exit(1)
Expand Down Expand Up @@ -125,7 +125,7 @@ func events(c Client, args []string) {
}
through := time.Now()
from := through.Add(-*since)
events, err := c.GetEvents(through.Unix(), from.Unix())
events, err := c.GetEvents(from.Unix(), through.Unix())
if err != nil {
fmt.Println(err.Error())
os.Exit(1)
Expand Down
2 changes: 1 addition & 1 deletion cmd/wcloud/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (c Client) GetDeployments(from, through int64) ([]Deployment, error) {

// GetEvents returns the raw events.
func (c Client) GetEvents(from, through int64) ([]byte, error) {
req, err := c.newRequest("GET", fmt.Sprintf("/api/deploy/from=%d&through=%d", from, through), nil)
req, err := c.newRequest("GET", fmt.Sprintf("/api/deploy/events?from=%d&through=%d", from, through), nil)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit f2f4e5b

Please sign in to comment.