diff --git a/app/services/fetch_groups_service.rb b/app/services/fetch_groups_service.rb index 561e0792..143a3ac7 100644 --- a/app/services/fetch_groups_service.rb +++ b/app/services/fetch_groups_service.rb @@ -9,7 +9,7 @@ class FetchGroupsService < BaseService end if body.nil? || !body || body.empty? - @groupIds = Group.where(is_featured: true, is_archived: false).limit(150).all.pluck(:id) + @groupIds = Group.where(is_featured: true, is_archived: false, is_private: false, is_visible: true).limit(150).all.pluck(:id) Redis.current.with do |conn| conn.set("groups:featuredgroups", @groupIds.join(","))