diff --git a/store/sqlstore/team_store.go b/store/sqlstore/team_store.go index 57649e8752..89d72db687 100644 --- a/store/sqlstore/team_store.go +++ b/store/sqlstore/team_store.go @@ -368,6 +368,8 @@ func (s SqlTeamStore) GetByNames(names []string) ([]*model.Team, *model.AppError return teams, nil } +// SearchAll returns from the database a list of teams that match the Name or DisplayName +// passed as the term search parameter. func (s SqlTeamStore) SearchAll(term string) ([]*model.Team, *model.AppError) { var teams []*model.Team @@ -400,6 +402,8 @@ func (s SqlTeamStore) SearchAllPaged(term string, page int, perPage int) ([]*mod return teams, totalCount, nil } +// SearchOpen returns from the database a list of public teams that match the Name or DisplayName +// passed as the term search parameter. func (s SqlTeamStore) SearchOpen(term string) ([]*model.Team, *model.AppError) { var teams []*model.Team @@ -412,6 +416,8 @@ func (s SqlTeamStore) SearchOpen(term string) ([]*model.Team, *model.AppError) { return teams, nil } +// SearchPrivate returns from the database a list of private teams that match the Name or DisplayName +// passed as the term search parameter. func (s SqlTeamStore) SearchPrivate(term string) ([]*model.Team, *model.AppError) { var teams []*model.Team