Skip to content

Commit

Permalink
fix client
Browse files Browse the repository at this point in the history
  • Loading branch information
jasperem committed Jul 25, 2023
1 parent 7a784af commit 4967b4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion v2/pkg/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ func (c *client) CalcOverview(d time.Time) (*Overview, error) {
}

func (c *client) StartActivity(desc string) (*Activity, error) {
resp, err := c.doRequest("POST", "activity/start?desc="+desc, nil)
resp, err := c.doRequest("POST", "activity", InputActivity{
Description: desc,
})
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 4967b4d

Please sign in to comment.