diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-06-27 09:30:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-27 09:30:15 +0200 |
commit | 2936f42a14cfdca70d4a9653dab29382315945e7 (patch) | |
tree | 182a6660f1d8304ad893582732fb85db00e250aa /app/services | |
parent | 602f291da9f4fa157233b29dc6ac96e784203c98 (diff) |
Add notifications for new reports (#18697)
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/report_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/report_service.rb b/app/services/report_service.rb index d251bb33f..70212a6a7 100644 --- a/app/services/report_service.rb +++ b/app/services/report_service.rb @@ -39,8 +39,8 @@ class ReportService < BaseService return if @report.unresolved_siblings? User.staff.includes(:account).each do |u| - next unless u.allows_report_emails? - AdminMailer.new_report(u.account, @report).deliver_later + LocalNotificationWorker.perform_async(u.account_id, @report.id, 'Report', 'admin.report') + AdminMailer.new_report(u.account, @report).deliver_later if u.allows_report_emails? end end |