mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-05-05 13:41:31 +00:00
Reload last_match and wrestler in advanced_wrestler. Moved calculate team score to the end of advance_wrestler.
This commit is contained in:
@@ -2,11 +2,6 @@ class AdvanceWrestlerJob < ApplicationJob
|
||||
queue_as :default
|
||||
|
||||
def perform(wrestler, match)
|
||||
# Add a small delay to increase chance of transaction commit
|
||||
# without this some matches were getting a deserialization error when running the rake task
|
||||
# to finish tournaments
|
||||
sleep(0.5) unless Rails.env.test?
|
||||
|
||||
# Get tournament from wrestler
|
||||
tournament = wrestler.tournament
|
||||
|
||||
|
||||
Reference in New Issue
Block a user