Fixing non elastic search paging. (#9471)

Этот коммит содержится в:
Christopher Speller
2018-09-27 12:11:19 -07:00
коммит произвёл Harrison Healey
родитель 15d9f10f43
Коммит 4546423427
2 изменённых файлов: 19 добавлений и 0 удалений

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

@@ -726,6 +726,11 @@ func (a *App) SearchPostsInTeam(terms string, userId string, teamId string, isOr
return nil, model.NewAppError("SearchPostsInTeam", "store.sql_post.search.disabled", nil, fmt.Sprintf("teamId=%v userId=%v", teamId, userId), http.StatusNotImplemented)
}
// Since we don't support paging we just return nothing for later pages
if page > 0 {
return model.MakePostSearchResults(model.NewPostList(), nil), nil
}
channels := []store.StoreChannel{}
for _, params := range paramsList {