diff --git a/app/controllers/slack/interactivity_controller.rb b/app/controllers/slack/interactivity_controller.rb index 2f343ff..4ff4927 100644 --- a/app/controllers/slack/interactivity_controller.rb +++ b/app/controllers/slack/interactivity_controller.rb @@ -29,7 +29,7 @@ class Slack::InteractivityController < ActionController::API when "tutorial_agree" Tutorial::AgreeJob.perform_later(current_identity) else - RalseiEngine.handle_action(current_identity, action_id) + Ralsei::HandleActionJob.perform_later(current_identity, action_id) end head :ok diff --git a/app/jobs/ralsei/handle_action_job.rb b/app/jobs/ralsei/handle_action_job.rb new file mode 100644 index 0000000..db798c9 --- /dev/null +++ b/app/jobs/ralsei/handle_action_job.rb @@ -0,0 +1,7 @@ +class Ralsei::HandleActionJob < ApplicationJob + queue_as :default + + def perform(identity, action_id) + RalseiEngine.handle_action(identity, action_id) + end +end