[MM-16167] Migrate "Team.GetAllPrivateTeamPageListing" to Sync by def… (#11181)

* [MM-16167] Migrate "Team.GetAllPrivateTeamPageListing" to Sync by default

* Fix shadow variable error
Этот коммит содержится в:
piperRyan
2019-06-14 04:26:55 -06:00
коммит произвёл Jesús Espino
родитель 570e6f1a74
Коммит 1f02b0ce72
5 изменённых файлов: 32 добавлений и 36 удалений

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

@@ -631,11 +631,7 @@ func (a *App) GetAllPrivateTeams() ([]*model.Team, *model.AppError) {
}
func (a *App) GetAllPrivateTeamsPage(offset int, limit int) ([]*model.Team, *model.AppError) {
result := <-a.Srv.Store.Team().GetAllPrivateTeamPageListing(offset, limit)
if result.Err != nil {
return nil, result.Err
}
return result.Data.([]*model.Team), nil
return a.Srv.Store.Team().GetAllPrivateTeamPageListing(offset, limit)
}
func (a *App) GetAllPublicTeams() ([]*model.Team, *model.AppError) {