Fix Rails/FindEach
cop (#26886)
This commit is contained in:
parent
fe26f33e0a
commit
0c4e7c06dc
8 changed files with 9 additions and 9 deletions
|
@ -42,7 +42,7 @@ class ReportService < BaseService
|
|||
def notify_staff!
|
||||
return if @report.unresolved_siblings?
|
||||
|
||||
User.those_who_can(:manage_reports).includes(:account).each do |u|
|
||||
User.those_who_can(:manage_reports).includes(:account).find_each do |u|
|
||||
LocalNotificationWorker.perform_async(u.account_id, @report.id, 'Report', 'admin.report')
|
||||
AdminMailer.with(recipient: u.account).new_report(@report).deliver_later if u.allows_report_emails?
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue