Implement GET /users endpoint for APIv4 (#5277)

This commit is contained in:
Joram Wilander
2017-02-03 15:17:34 -05:00
committed by GitHub
parent 948b557453
commit 7ff2aef7fa
15 changed files with 603 additions and 87 deletions

View File

@@ -291,7 +291,7 @@ func (me *LoadTestProvider) PostsCommand(c *Context, channelId string, message s
var usernames []string
if result := <-app.Srv.Store.User().GetProfiles(c.TeamId, 0, 1000); result.Err == nil {
profileUsers := result.Data.(map[string]*model.User)
profileUsers := result.Data.([]*model.User)
usernames = make([]string, len(profileUsers))
i := 0
for _, userprof := range profileUsers {