Restructure omni services and add Chatwoot research snapshot
This commit is contained in:
7
research/chatwoot/app/jobs/event_dispatcher_job.rb
Normal file
7
research/chatwoot/app/jobs/event_dispatcher_job.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
class EventDispatcherJob < ApplicationJob
|
||||
queue_as :critical
|
||||
|
||||
def perform(event_name, timestamp, data)
|
||||
Rails.configuration.dispatcher.async_dispatcher.publish_event(event_name, timestamp, data)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user