Skip to content

Commit

Permalink
Only return popular service pages
Browse files Browse the repository at this point in the history
  • Loading branch information
hannako committed Jul 29, 2024
1 parent cd77564 commit 5c18828
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/models/mainstream_browse_page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ def popular_tasks
return if second_level_browse_pages.blank?

slugs = second_level_browse_pages.map { |page| slug(page.base_path) }
@documents_service.new(slugs, "filter_any_mainstream_browse_pages").fetch_related_documents_with_format
service_pages_tagged_to_browse_subtopics(slugs)
end

def service_pages_tagged_to_browse_subtopics(subtopic_slugs)
@documents_service.new(subtopic_slugs, "filter_any_mainstream_browse_pages").fetch_related_documents_with_format({ filter_format: "transaction" })
end
end

0 comments on commit 5c18828

Please sign in to comment.