Updated FetchGroupsService to fetch featured groups that are not private and visible

• Updated:
- FetchGroupsService to fetch featured groups that are not private and visible
This commit is contained in:
Developer 2021-02-10 12:43:23 -05:00
parent 3e9e32b276
commit 59484da4dc
1 changed files with 1 additions and 1 deletions

View File

@ -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(","))