Move Salmon processing to background as well as PuSH
This commit is contained in:
parent
2c58e7e06a
commit
7dea6a23f7
2 changed files with 10 additions and 1 deletions
9
app/workers/salmon_worker.rb
Normal file
9
app/workers/salmon_worker.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class SalmonWorker
|
||||
include Sidekiq::Worker
|
||||
|
||||
def perform(account_id, body)
|
||||
ProcessInteractionService.new.call(body, Account.find(account_id))
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue