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

Этот коммит содержится в:
Joram Wilander
2018-05-02 10:50:56 -04:00
коммит произвёл Christopher Speller
родитель 1647614fc9
Коммит d6537deb3d
3 изменённых файлов: 30 добавлений и 7 удалений

Просмотреть файл

@@ -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 {