diff --git a/app/services/playoff_stage_service.rb b/app/services/playoff_stage_service.rb index ce86980..8cd5bc3 100644 --- a/app/services/playoff_stage_service.rb +++ b/app/services/playoff_stage_service.rb @@ -95,6 +95,7 @@ class PlayoffStageService # If a match is not decided yet, it will return nil as winner. # This is not allowed in Database. The following code filters out MatchScores that contain nil as team. match_scores = match_scores.select { |ms| ms.team.present? } + match_scores.each(&:save) match_below.match_scores = match_scores match_below.save match_below