Skip to content

Commit

Permalink
fix: cursor column naming for game scores
Browse files Browse the repository at this point in the history
  • Loading branch information
ze97286 committed Jul 15, 2024
1 parent e8844bd commit e03e11e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
- [11438](https://github.com/vegaprotocol/vega/issues/11438) - Add missing assignment to epoch to and from in `gameTeamScores` resolvers.
- [11442](https://github.com/vegaprotocol/vega/issues/11442) - Add validation to `submitAMM` to ensure the curves can be successfully generated.
- [11448](https://github.com/vegaprotocol/vega/issues/11448) - Fix team game score query with epoch filter.
- [11457](https://github.com/vegaprotocol/vega/issues/11457) - Fix cursor column ordering for game scores.

## 0.76.1

Expand Down
12 changes: 6 additions & 6 deletions datanode/sqlstore/game_scores.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ type GameScores struct {
}

var gamesTeamOrderding = TableOrdering{
ColumnOrdering{Name: "t1.game_id", Sorting: ASC},
ColumnOrdering{Name: "t1.epoch_id", Sorting: DESC},
ColumnOrdering{Name: "t1.team_id", Sorting: ASC},
ColumnOrdering{Name: "game_id", Sorting: ASC},
ColumnOrdering{Name: "epoch_id", Sorting: DESC},
ColumnOrdering{Name: "team_id", Sorting: ASC},
}

var gamesPartyOrderding = TableOrdering{
ColumnOrdering{Name: "t1.game_id", Sorting: ASC},
ColumnOrdering{Name: "t1.epoch_id", Sorting: DESC},
ColumnOrdering{Name: "t1.party_id", Sorting: ASC},
ColumnOrdering{Name: "game_id", Sorting: ASC},
ColumnOrdering{Name: "epoch_id", Sorting: DESC},
ColumnOrdering{Name: "party_id", Sorting: ASC},
}

func NewGameScores(connectionSource *ConnectionSource) *GameScores {
Expand Down

0 comments on commit e03e11e

Please sign in to comment.