[MM-16163] Migrate "Team.SearchPrivate" to Sync by default (#11109)
Этот коммит содержится в:
коммит произвёл
Miguel de la Cruz
родитель
8c56a5f202
Коммит
1c63057095
@@ -664,11 +664,7 @@ func (a *App) SearchPublicTeams(term string) ([]*model.Team, *model.AppError) {
|
||||
}
|
||||
|
||||
func (a *App) SearchPrivateTeams(term string) ([]*model.Team, *model.AppError) {
|
||||
result := <-a.Srv.Store.Team().SearchPrivate(term)
|
||||
if result.Err != nil {
|
||||
return nil, result.Err
|
||||
}
|
||||
return result.Data.([]*model.Team), nil
|
||||
return a.Srv.Store.Team().SearchPrivate(term)
|
||||
}
|
||||
|
||||
func (a *App) GetTeamsForUser(userId string) ([]*model.Team, *model.AppError) {
|
||||
|
||||
Ссылка в новой задаче
Block a user