Class: DuodealerApp::WebhooksController

Inherits:
ApplicationController
  • Object
show all
Includes:
WebhookVerification
Defined in:
app/controllers/duodealer_app/webhooks_controller.rb

Instance Method Summary collapse

Instance Method Details

#receiveObject



9
10
11
12
13
14
# File 'app/controllers/duodealer_app/webhooks_controller.rb', line 9

def receive
  params.permit!
  job_args = { account_domain: , webhook: webhook_params.to_h }
  webhook_job_klass.perform_later(job_args)
  head :no_content
end