This commit is contained in:
Daniel Schädler 2019-06-05 00:15:54 +02:00
parent 0c072b7719
commit 8634bddcaf
1 changed files with 1 additions and 2 deletions

View File

@ -14,8 +14,7 @@ class MatchScoresController < ApplicationController
def update def update
if @match_score.update(match_score_params) if @match_score.update(match_score_params)
if @match_score.part_of_group_match? if @match_score.part_of_group_match?
match_score_group = @match_score.match.group UpdateGroupsGroupScoresAndSave.call(group: @match_score.match.group)
UpdateGroupsGroupScoresAndSave.call(group: match_score_group)
end end
render json: @match_score render json: @match_score
else else