Class: UnassignedSupportCaseWorker
- Inherits:
-
Object
- Object
- UnassignedSupportCaseWorker
- Includes:
- Sidekiq::Job
- Defined in:
- app/workers/unassigned_support_case_worker.rb
Instance Method Summary collapse
Instance Method Details
#perform ⇒ Object
6 7 8 9 |
# File 'app/workers/unassigned_support_case_worker.rb', line 6 def perform cases = SupportCase.where("state in ('new','open') and assigned_to_id is null and unassigned_notification_sent IS NOT TRUE") cases.each(&:send_unassigned_email) end |