[MM-24522] remove duplication in OR and IncludeDeletedChannels params for search (#14573)

Этот коммит содержится в:
Abdulkadir Poyraz
2020-08-31 14:40:58 +03:00
коммит произвёл GitHub
родитель 2b1da58e6d
Коммит f12ca27bac
12 изменённых файлов: 182 добавлений и 132 удалений

Просмотреть файл

@@ -4829,10 +4829,10 @@ func (s *TimerLayerPostStore) Search(teamId string, userId string, params *model
return result, err
}
func (s *TimerLayerPostStore) SearchPostsInTeamForUser(paramsList []*model.SearchParams, userId string, teamId string, isOrSearch bool, includeDeletedChannels bool, page int, perPage int) (*model.PostSearchResults, *model.AppError) {
func (s *TimerLayerPostStore) SearchPostsInTeamForUser(paramsList []*model.SearchParams, userId string, teamId string, page int, perPage int) (*model.PostSearchResults, *model.AppError) {
start := timemodule.Now()
result, err := s.PostStore.SearchPostsInTeamForUser(paramsList, userId, teamId, isOrSearch, includeDeletedChannels, page, perPage)
result, err := s.PostStore.SearchPostsInTeamForUser(paramsList, userId, teamId, page, perPage)
elapsed := float64(timemodule.Since(start)) / float64(timemodule.Second)
if s.Root.Metrics != nil {