Call calculate_group_points on Match_score Update

This commit is contained in:
Daniel Schädler 2019-05-10 11:35:58 +02:00
parent 3da6e83965
commit a82924a4e4
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ class MatchScoresController < ApplicationController
# PATCH/PUT /scores/1
def update
if @match_score.update(match_score_params)
GroupStageService.calculate_group_points(@match_score)
render json: @match_score
else
render json: @match_score.errors, status: :unprocessable_entity