Chatwoot/app/jobs/event_dispatcher_job.rb

8 lines
210 B
Ruby
Raw Permalink Normal View History

class EventDispatcherJob < ApplicationJob
queue_as :events
def perform(event_name, timestamp, data)
Rails.configuration.dispatcher.async_dispatcher.publish_event(event_name, timestamp, data)
end
end