Commit 3c56e414 authored by http://jneen.net/'s avatar http://jneen.net/

use a simple pluck, since equivalent filtering happens later

parent 18288fe2
......@@ -175,9 +175,7 @@ module NotificationRecipientService
end
def user_ids_with_global_level_custom(ids, action)
settings = settings_with_global_level_of(:custom, ids)
settings = settings.select { |setting| setting.event_enabled?(action) }
settings.map(&:user_id)
settings_with_global_level_of(:custom, ids).pluck(:user_id)
end
def settings_with_global_level_of(level, ids)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment