diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-11-02 12:18:39 -0600 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-11-02 14:03:21 -0600 |
commit | 2c7ecc6e8981422dc682e21681b56507c0fddb99 (patch) | |
tree | 0b8a7b48ca138ffc83edcdf7abb4e142e3a29f56 /app | |
parent | be354c660d9c3ee837a547357453591e217ea342 (diff) |
Use options hash
Diffstat (limited to 'app')
-rw-r--r-- | app/workers/block_worker.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/workers/block_worker.rb b/app/workers/block_worker.rb index 89ba11b55..20bb10408 100644 --- a/app/workers/block_worker.rb +++ b/app/workers/block_worker.rb @@ -3,11 +3,11 @@ class BlockWorker include Sidekiq::Worker - def perform(account_id, target_account_id, defederate: true) + def perform(account_id, target_account_id, options = {}) AfterBlockService.new.call( Account.find(account_id), Account.find(target_account_id), - defederate: defederate + defederate: options['defederate'] ) end end |