From e03e11e928416cacf7fc6a1f0b41ea75d841bb9f Mon Sep 17 00:00:00 2001 From: ze97286 Date: Mon, 15 Jul 2024 12:13:54 +0100 Subject: [PATCH] fix: cursor column naming for game scores --- CHANGELOG.md | 1 + datanode/sqlstore/game_scores.go | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 88ba8d4187..93f1ac6337 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/datanode/sqlstore/game_scores.go b/datanode/sqlstore/game_scores.go index 9e13cf5ac1..559fcd419a 100644 --- a/datanode/sqlstore/game_scores.go +++ b/datanode/sqlstore/game_scores.go @@ -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 {