Sidekiq worker: customer watch.
Parameters:
job options
Options Hash (options):
restrict the watch to a single employee
9 10 11
# File 'app/workers/customer_watch_worker.rb', line 9 def perform(options = {}) Customer::Watch.new.process(employee_id: options[:employee_id].presence) end