Fix: Commander db name in types

This commit is contained in:
zuma 2025-06-10 23:17:50 +02:00
parent dbcf5decb8
commit 8db4870057
2 changed files with 3 additions and 2 deletions

View file

@ -256,6 +256,7 @@ func updateEloCommanderWithLastMatch(e *core.RecordEvent, commanderId string, da
AndWhere(dbx.Or(dbx.NewExp("commandant_1 = {:id}", dbx.Params{"id": commanderId}), dbx.NewExp("commandant_2 = {:id}", dbx.Params{"id": commanderId}))).
OrderBy("date DESC").
One(&lastMatch)
if err == nil {
// If a match exists before this one update ELO
if lastMatch.Commander1 == commanderId {