diff --git a/app/jobs/tournament_backup_job.rb b/app/jobs/tournament_backup_job.rb index b5d57cb..1ac7be9 100644 --- a/app/jobs/tournament_backup_job.rb +++ b/app/jobs/tournament_backup_job.rb @@ -1,6 +1,6 @@ class TournamentBackupJob < ApplicationJob queue_as :default - limits_concurrency to: 1, key: ->(tournament) { "tournament:#{tournament.id}" } + limits_concurrency to: 1, key: ->(tournament, *) { "tournament:#{tournament.id}" } def perform(tournament, reason = nil) # Log information about the job diff --git a/app/jobs/wrestlingdev_import_job.rb b/app/jobs/wrestlingdev_import_job.rb index 62f15e2..e61c14e 100644 --- a/app/jobs/wrestlingdev_import_job.rb +++ b/app/jobs/wrestlingdev_import_job.rb @@ -1,6 +1,6 @@ class WrestlingdevImportJob < ApplicationJob queue_as :default - limits_concurrency to: 1, key: ->(tournament) { "tournament:#{tournament.id}" } + limits_concurrency to: 1, key: ->(tournament, *) { "tournament:#{tournament.id}" } def perform(tournament, import_data = nil) # Log information about the job