mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Fix arguements for the tournament backup and import jobs
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
class TournamentBackupJob < ApplicationJob
|
class TournamentBackupJob < ApplicationJob
|
||||||
queue_as :default
|
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)
|
def perform(tournament, reason = nil)
|
||||||
# Log information about the job
|
# Log information about the job
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
class WrestlingdevImportJob < ApplicationJob
|
class WrestlingdevImportJob < ApplicationJob
|
||||||
queue_as :default
|
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)
|
def perform(tournament, import_data = nil)
|
||||||
# Log information about the job
|
# Log information about the job
|
||||||
|
|||||||
Reference in New Issue
Block a user