Admin mailer parameterization (#25759)
This commit is contained in:
parent
41a505513f
commit
cf33028f35
10 changed files with 40 additions and 36 deletions
|
@ -40,7 +40,7 @@ class ReportService < BaseService
|
|||
|
||||
User.those_who_can(:manage_reports).includes(:account).each do |u|
|
||||
LocalNotificationWorker.perform_async(u.account_id, @report.id, 'Report', 'admin.report')
|
||||
AdminMailer.new_report(u.account, @report).deliver_later if u.allows_report_emails?
|
||||
AdminMailer.with(recipient: u.account).new_report(@report).deliver_later if u.allows_report_emails?
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue