1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-06 22:44:14 +00:00

Fixed creating a teampointadjust with a wrestler

This commit is contained in:
2023-01-19 22:48:41 +00:00
parent 86bb0b8410
commit 1ee886abd3
2 changed files with 4 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ class Teampointadjust < ActiveRecord::Base
#Team score needs calculated
if self.wrestler_id != nil
#In case this affects pool order
AdvanceWrestler.new(self.wrestler).advance
AdvanceWrestler.new(self.wrestler,self.wrestler.last_match).advance
self.wrestler.school.calculate_score
elsif self.school_id != nil
self.school.calculate_score