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:
parent
3e9e32b276
commit
59484da4dc
@ -9,7 +9,7 @@ class FetchGroupsService < BaseService
|
|||||||
end
|
end
|
||||||
|
|
||||||
if body.nil? || !body || body.empty?
|
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|
|
Redis.current.with do |conn|
|
||||||
conn.set("groups:featuredgroups", @groupIds.join(","))
|
conn.set("groups:featuredgroups", @groupIds.join(","))
|
||||||
|
Loading…
Reference in New Issue
Block a user