Add inactive user count to analytics and fix client analytics function (#8695)

This commit is contained in:
Joram Wilander
2018-05-02 10:50:56 -04:00
committed by Christopher Speller
parent 1647614fc9
commit d6537deb3d
3 changed files with 30 additions and 7 deletions

View File

@@ -2359,7 +2359,7 @@ func (c *Client4) RemoveLicenseFile() (bool, *Response) {
// and defaults to "standard". The "teamId" argument is optional and will limit results
// to a specific team.
func (c *Client4) GetAnalyticsOld(name, teamId string) (AnalyticsRows, *Response) {
query := fmt.Sprintf("?name=%v&teamId=%v", name, teamId)
query := fmt.Sprintf("?name=%v&team_id=%v", name, teamId)
if r, err := c.DoApiGet(c.GetAnalyticsRoute()+"/old"+query, ""); err != nil {
return nil, BuildErrorResponse(r, err)
} else {