Class: SolidusBolt::WebhooksController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/solidus_bolt/webhooks_controller.rb

Instance Method Summary collapse

Instance Method Details

#updateObject



5
6
7
8
9
10
11
12
13
# File 'app/controllers/solidus_bolt/webhooks_controller.rb', line 5

def update
  ::SolidusBolt::Sorter.call(permitted_params)

  render json: {}, status: :ok
rescue StandardError => e
  error_message = e.to_s
  logger.error error_message
  render json: { error: error_message }, status: :unprocessable_entity
end