about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-08-30 19:33:25 -0500
committermultiple creatures <dev@multiple-creature.party>2019-08-30 19:33:25 -0500
commita97ce6534d66c3500f5546f9bdbd5c7d2ed1f966 (patch)
treec704bc421fa76e4367a1722762f5edc9c3b4d4fe /app
parente881d75632898d1544962fa5f38f418ab0ab152f (diff)
make sure id is an integer
Diffstat (limited to 'app')
-rw-r--r--app/workers/domain_block_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/domain_block_worker.rb b/app/workers/domain_block_worker.rb
index d51c387dc..8227eb27b 100644
--- a/app/workers/domain_block_worker.rb
+++ b/app/workers/domain_block_worker.rb
@@ -4,7 +4,7 @@ class DomainBlockWorker
   include Sidekiq::Worker
 
   def perform(domain_block_id)
-    domain_block = DomainBlock.find(domain_block_id)
+    domain_block = DomainBlock.find(domain_block_id.to_i)
     BlockDomainService.new.call(domain_block)
   rescue ActiveRecord::RecordNotFound
     true