Commit 30ec35db authored by Julien Schröter's avatar Julien Schröter

Ignore query result order when requesting all of an user's duels

parent cf2ff4a6
Pipeline #2327 canceled with stage
in 2 minutes and 1 second
......@@ -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{})
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment