diff --git a/endpoint/duel/query.go b/endpoint/duel/query.go index 48e66610e69b84213ad849f774d954d716f64802..a5cafd8875253733b762ebf01b108e03df992677 100644 --- a/endpoint/duel/query.go +++ b/endpoint/duel/query.go @@ -524,7 +524,7 @@ func (m *MySQLDuelQuery) GetAllDuels(userID, limit uint32) ([]schemas.DuelSchema // add a new empty duel into the duels array when we enter the // rows of the next duel in the results set - if len(duels) == 0 || scanDuel.ID > duels[len(duels)-1].ID { + if len(duels) == 0 || scanDuel.ID != duels[len(duels)-1].ID { duels = append(duels, schemas.DuelSchema{}) }