summaryrefslogtreecommitdiffstats
path: root/model/client4.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2018-05-02 10:50:56 -0400
committerChristopher Speller <crspeller@gmail.com>2018-05-02 07:50:56 -0700
commitd6537deb3ddace25b693932ae503b4fbdbe02935 (patch)
tree64b3f9989e43459cfc815076fe460920a8796abe /model/client4.go
parent1647614fc95b0cb9dd5c4c5699f4f7fbba0bee43 (diff)
downloadchat-d6537deb3ddace25b693932ae503b4fbdbe02935.tar.gz
chat-d6537deb3ddace25b693932ae503b4fbdbe02935.tar.bz2
chat-d6537deb3ddace25b693932ae503b4fbdbe02935.zip
Add inactive user count to analytics and fix client analytics function (#8695)
Diffstat (limited to 'model/client4.go')
-rw-r--r--model/client4.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/model/client4.go b/model/client4.go
index cf34c9fd7..7ca2bdf4e 100644
--- a/model/client4.go
+++ b/model/client4.go
@@ -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 {