mirror of
https://github.com/System-End/identity-vault.git
synced 2026-04-19 19:45:08 +00:00
ralsei has a job
This commit is contained in:
parent
5f41bb5b60
commit
8ce5102319
2 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
7
app/jobs/ralsei/handle_action_job.rb
Normal file
7
app/jobs/ralsei/handle_action_job.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
class Ralsei::HandleActionJob < ApplicationJob
|
||||
queue_as :default
|
||||
|
||||
def perform(identity, action_id)
|
||||
RalseiEngine.handle_action(identity, action_id)
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Reference in a new issue