Skip to content

Commit

Permalink
Clean up after refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwr18 committed Jan 21, 2025
1 parent bc8f407 commit 28e13db
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@
module WhatsAppAdapter
module ThreeSixtyDialog
class ProcessWebhookJob < ApplicationJob
attr_reader :organization, :whats_app_message

def perform(organization_id:, components:)
@organization = Organization.find(organization_id)
organization = Organization.find(organization_id)

@whats_app_message = components
whats_app_message = components
adapter = WhatsAppAdapter::ThreeSixtyDialogInbound.new

adapter.consume(organization, components)
adapter.consume(organization, whats_app_message)
end
end
end
Expand Down

0 comments on commit 28e13db

Please sign in to comment.