GH-11085 Migrate Team.GetAllTeamPageListing to Sync by default (#11106)
* GH-11085 Migrate Team.GetAllTeamPageListing to Sync by default * GH-11085 review fixes * GH-11085 rename data to teams * GH-11085 revert i18n changes
Этот коммит содержится в:
коммит произвёл
Jesús Espino
родитель
f934502a56
Коммит
1a57018adf
@@ -639,11 +639,7 @@ func (a *App) GetAllPublicTeams() ([]*model.Team, *model.AppError) {
|
||||
}
|
||||
|
||||
func (a *App) GetAllPublicTeamsPage(offset int, limit int) ([]*model.Team, *model.AppError) {
|
||||
result := <-a.Srv.Store.Team().GetAllTeamPageListing(offset, limit)
|
||||
if result.Err != nil {
|
||||
return nil, result.Err
|
||||
}
|
||||
return result.Data.([]*model.Team), nil
|
||||
return a.Srv.Store.Team().GetAllTeamPageListing(offset, limit)
|
||||
}
|
||||
|
||||
func (a *App) SearchAllTeams(term string) ([]*model.Team, *model.AppError) {
|
||||
|
||||
Ссылка в новой задаче
Block a user