[MM-16165] Migrate Team.GetAllPage to Sync by default (#11201)

* [MM-16165] Migrate Team.GetAllPage to Sync by default

* [MM-16165] Pull Request suggested changes: remove else
Этот коммит содержится в:
Micah Thompson
2019-06-17 13:45:52 -04:00
коммит произвёл Christopher Poile
родитель e15a75a2ec
Коммит 6bb147c380
4 изменённых файлов: 39 добавлений и 25 удалений

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

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