Commit 965266c7 authored by dgt's avatar dgt

Merge branch '267-deprecation-warnings-for-rails-6-0' into 'master'

Remove first Deprecation warning for Rails 6.0

See merge request !248
parents f7725bc2 6556490e
......@@ -198,8 +198,7 @@ module User::Cache
# Exclude large groups from calculating peer relationships
group_ids -= Group.large.pluck(:id)
ids = User.joins(:memberships)
.where(memberships: { group_id: group_ids })
.where(memberships: { group_id: group_ids }).distinct.pluck(:id)
ids - [id]
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment