mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Force curently genrating matches to be nil
This commit is contained in:
@@ -12,10 +12,12 @@ class GenerateTournamentMatches
|
|||||||
PoolToBracketMatchGeneration.new(@tournament).generatePoolToBracketMatchesWeight(weight) if @tournament.tournament_type == "Pool to bracket"
|
PoolToBracketMatchGeneration.new(@tournament).generatePoolToBracketMatchesWeight(weight) if @tournament.tournament_type == "Pool to bracket"
|
||||||
postMatchCreationActions
|
postMatchCreationActions
|
||||||
PoolToBracketGenerateLoserNames.new(@tournament).assignLoserNamesWeight(weight) if @tournament.tournament_type == "Pool to bracket"
|
PoolToBracketGenerateLoserNames.new(@tournament).assignLoserNamesWeight(weight) if @tournament.tournament_type == "Pool to bracket"
|
||||||
|
@tournament.curently_generating_matches = nil
|
||||||
|
@tournament.save!
|
||||||
end
|
end
|
||||||
if Rails.env.production?
|
if Rails.env.production?
|
||||||
handle_asynchronously :generateWeight
|
handle_asynchronously :generateWeight
|
||||||
end
|
end
|
||||||
|
|
||||||
def generate
|
def generate
|
||||||
standardStartingActions
|
standardStartingActions
|
||||||
|
|||||||
Reference in New Issue
Block a user