Chore: Remove result field from search (#65583)

remove result field from search
This commit is contained in:
Serge Zaitsev
2023-03-30 11:28:12 +02:00
committed by GitHub
parent a02091cc19
commit f19569d61d
7 changed files with 38 additions and 42 deletions

View File

@@ -52,8 +52,9 @@ func (hs *HTTPServer) populateDashboardsByTag(ctx context.Context, orgID int64,
OrgId: orgID,
}
if err := hs.SearchService.SearchHandler(ctx, &searchQuery); err == nil {
for _, item := range searchQuery.Result {
hits, err := hs.SearchService.SearchHandler(ctx, &searchQuery)
if err == nil {
for _, item := range hits {
result = append(result, dtos.PlaylistDashboard{
Id: item.ID,
Slug: item.Slug,