From a82924a4e43ce7aa2ea41598f6e969a1d2a586a0 Mon Sep 17 00:00:00 2001 From: Malaber <32635600+Malaber@users.noreply.github.com> Date: Fri, 10 May 2019 11:35:58 +0200 Subject: [PATCH] Call calculate_group_points on Match_score Update --- app/controllers/match_scores_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/match_scores_controller.rb b/app/controllers/match_scores_controller.rb index 80c18ae..0eb5ed2 100644 --- a/app/controllers/match_scores_controller.rb +++ b/app/controllers/match_scores_controller.rb @@ -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