mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-05-16 02:07:46 +00:00
Refactored match winner and wrestlers matches and fixed slow tests.
This commit is contained in:
@@ -1,13 +1,6 @@
|
||||
class TournamentBackupJob < ApplicationJob
|
||||
queue_as :default
|
||||
|
||||
# Class method for direct execution in test environment
|
||||
def self.perform_sync(tournament, reason = nil)
|
||||
# Execute directly on provided objects
|
||||
service = TournamentBackupService.new(tournament, reason)
|
||||
service.create_backup_raw
|
||||
end
|
||||
|
||||
def perform(tournament, reason = nil)
|
||||
# Log information about the job
|
||||
Rails.logger.info("Creating backup for tournament ##{tournament.id} (#{tournament.name}), reason: #{reason || 'manual'}")
|
||||
|
||||
Reference in New Issue
Block a user