mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Need to save unassigning mats
This commit is contained in:
@@ -12,8 +12,6 @@ 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
|
||||||
@@ -78,6 +76,7 @@ class GenerateTournamentMatches
|
|||||||
matches = @tournament.matches.reload
|
matches = @tournament.matches.reload
|
||||||
matches.each do |m|
|
matches.each do |m|
|
||||||
m.mat_id = nil
|
m.mat_id = nil
|
||||||
|
m.save!
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -88,7 +87,4 @@ class GenerateTournamentMatches
|
|||||||
m.save!
|
m.save!
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user