[MM-16168] Migrate Team.GetAllTeamListing to Sync by default (#11102)

* [MM-16168] Migrate Team.GetAllTeamListing to Sync by default

* reverting GetAllTeamPageListing modification

* Modifying app/team.go

* Simplifying code
Этот коммит содержится в:
Mounica Paladugu
2019-07-09 08:19:18 -07:00
коммит произвёл Jesús Espino
родитель eb0268f108
Коммит 6fc0ec06b2
5 изменённых файлов: 28 добавлений и 28 удалений

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

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