0
0
Fork 0

Fix Rails/FindEach cop (#26886)

This commit is contained in:
Matt Jankowski 2023-11-06 10:53:29 -05:00 committed by GitHub
parent fe26f33e0a
commit 0c4e7c06dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 9 additions and 9 deletions

View file

@ -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