diff --git a/app/interactor/search_profiles_by_category.rb b/app/interactor/search_profiles_by_category.rb index aaadfab18..a2c2af15e 100644 --- a/app/interactor/search_profiles_by_category.rb +++ b/app/interactor/search_profiles_by_category.rb @@ -24,7 +24,9 @@ def profiles_for_category(category) Profile.with_attached_image .is_published .by_region(context.region) + .includes(:translations) .includes(:topics) .where(tags: { name: tag_names }) + end end diff --git a/app/interactor/search_profiles_by_tags.rb b/app/interactor/search_profiles_by_tags.rb index 6335c7a48..0b12c6dcf 100644 --- a/app/interactor/search_profiles_by_tags.rb +++ b/app/interactor/search_profiles_by_tags.rb @@ -16,6 +16,7 @@ def call def profiles_with_tags(tags) Profile.is_published .by_region(context.current_region) + .includes([:translations]) .has_tags(tags) end end