[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
Этот коммит содержится в:
коммит произвёл
Christopher Poile
родитель
e15a75a2ec
Коммит
6bb147c380
@@ -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) {
|
||||
|
||||
Ссылка в новой задаче
Block a user