Skip to content

Commit 8ce5102

Browse files
committed
ralsei has a job
1 parent 5f41bb5 commit 8ce5102

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

app/controllers/slack/interactivity_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def handle_block_actions(payload)
2929
when "tutorial_agree"
3030
Tutorial::AgreeJob.perform_later(current_identity)
3131
else
32-
RalseiEngine.handle_action(current_identity, action_id)
32+
Ralsei::HandleActionJob.perform_later(current_identity, action_id)
3333
end
3434

3535
head :ok
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class Ralsei::HandleActionJob < ApplicationJob
2+
queue_as :default
3+
4+
def perform(identity, action_id)
5+
RalseiEngine.handle_action(identity, action_id)
6+
end
7+
end

0 commit comments

Comments
 (0)