diff --git a/app/controllers/match_scores_controller.rb b/app/controllers/match_scores_controller.rb index c1bc65e..2ccf1b4 100644 --- a/app/controllers/match_scores_controller.rb +++ b/app/controllers/match_scores_controller.rb @@ -14,8 +14,7 @@ class MatchScoresController < ApplicationController def update if @match_score.update(match_score_params) if @match_score.part_of_group_match? - match_score_group = @match_score.match.group - UpdateGroupsGroupScoresAndSave.call(group: match_score_group) + UpdateGroupsGroupScoresAndSave.call(group: @match_score.match.group) end render json: @match_score else