Skip to content

Commit

Permalink
Merge 20f7d8d into 461a0b3
Browse files Browse the repository at this point in the history
  • Loading branch information
enahum committed Apr 16, 2017
2 parents 461a0b3 + 20f7d8d commit e3d05be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api4/channel.go
Expand Up @@ -338,7 +338,7 @@ func getPublicChannelsForTeam(c *Context, w http.ResponseWriter, r *http.Request
return
}

if channels, err := app.GetPublicChannelsForTeam(c.Params.TeamId, c.Params.Page, c.Params.PerPage); err != nil {
if channels, err := app.GetPublicChannelsForTeam(c.Params.TeamId, c.Params.Page*c.Params.PerPage, c.Params.PerPage); err != nil {
c.Err = err
return
} else {
Expand Down

0 comments on commit e3d05be

Please sign in to comment.