Fix: Commander db name in types
This commit is contained in:
parent
dbcf5decb8
commit
8db4870057
2 changed files with 3 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue