From 8634bddcaf3a35a0c5a1589d1440de3197a2e279 Mon Sep 17 00:00:00 2001 From: Malaber <32635600+Malaber@users.noreply.github.com> Date: Wed, 5 Jun 2019 00:15:54 +0200 Subject: [PATCH] fixup to 3cad50776f476afe0c10c7331835d719fe1b7eac --- app/controllers/match_scores_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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