chore: Move Facebook event processing to worker (#2988)
This commit is contained in:
8
app/jobs/webhooks/facebook_events_job.rb
Normal file
8
app/jobs/webhooks/facebook_events_job.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
class Webhooks::FacebookEventsJob < ApplicationJob
|
||||
queue_as :default
|
||||
|
||||
def perform(message)
|
||||
response = ::Integrations::Facebook::MessageParser.new(message)
|
||||
::Integrations::Facebook::MessageCreator.new(response).perform
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user