0
0
Fork 0

Move merging/unmerging of timelines into background. Move blocking into

background as well since it's a computationally expensive
This commit is contained in:
Eugen Rochko 2017-01-23 21:29:34 +01:00
parent f392030ab8
commit cca82bf0a2
7 changed files with 45 additions and 19 deletions

View file

@ -0,0 +1,9 @@
# frozen_string_literal: true
class BlockWorker
include Sidekiq::Worker
def perform(account_id, target_account_id)
BlockService.new.call(Account.find(account_id), Account.find(target_account_id))
end
end