Chatwoot/app/jobs/webhooks/facebook_events_job.rb

9 lines
240 B
Ruby
Raw Permalink Normal View History

class Webhooks::FacebookEventsJob < ApplicationJob
queue_as :default
def perform(message)
response = ::Integrations::Facebook::MessageParser.new(message)
::Integrations::Facebook::MessageCreator.new(response).perform
end
end