fixup to 3cad50776f
This commit is contained in:
parent
0c072b7719
commit
8634bddcaf
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue