Class: UnassignedSupportCaseWorker
- Inherits:
-
Object
- Object
- UnassignedSupportCaseWorker
- Includes:
- Sidekiq::Job
- Defined in:
- app/workers/unassigned_support_case_worker.rb
Overview
Sidekiq worker: unassigned support case.
Instance Method Summary collapse
-
#perform ⇒ Object
Runs the job.
Instance Method Details
#perform ⇒ Object
Runs the job.
10 11 12 13 |
# File 'app/workers/unassigned_support_case_worker.rb', line 10 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 |