Persist match committed time to the DB.

This commit is contained in:
Patrick Fairbank
2018-09-23 13:00:10 -07:00
parent f8466f743a
commit af55868328
4 changed files with 8 additions and 5 deletions

View File

@@ -359,6 +359,7 @@ func (web *Web) commitMatchScore(match *model.Match, matchResult *model.MatchRes
// Update and save the match record to the database.
match.Status = "complete"
match.ScoreCommittedAt = time.Now()
redScore := matchResult.RedScoreSummary()
blueScore := matchResult.BlueScoreSummary()
if redScore.Score > blueScore.Score {