[MM-16167] Migrate "Team.GetAllPrivateTeamPageListing" to Sync by def… (#11181)
* [MM-16167] Migrate "Team.GetAllPrivateTeamPageListing" to Sync by default * Fix shadow variable error
Этот коммит содержится в:
коммит произвёл
Jesús Espino
родитель
570e6f1a74
Коммит
1f02b0ce72
@@ -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) {
|
||||
|
||||
Ссылка в новой задаче
Block a user