mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-05-13 17:18:58 +00:00
Refactored match winner and wrestlers matches and fixed slow tests.
This commit is contained in:
@@ -1,14 +1,6 @@
|
||||
class WrestlingdevImportJob < ApplicationJob
|
||||
queue_as :default
|
||||
|
||||
# Class method for direct execution in test environment
|
||||
def self.perform_sync(tournament, import_data = nil)
|
||||
# Execute directly on provided objects
|
||||
importer = WrestlingdevImporter.new(tournament)
|
||||
importer.import_data = import_data if import_data
|
||||
importer.import_raw
|
||||
end
|
||||
|
||||
def perform(tournament, import_data = nil)
|
||||
# Log information about the job
|
||||
Rails.logger.info("Starting import for tournament ##{tournament.id} (#{tournament.name})")
|
||||
|
||||
Reference in New Issue
Block a user