Skip to content

Commit a15bd03

Browse files
committed
Fixed broken query
1 parent 695af87 commit a15bd03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

data/match.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ func GetHeadToHeadMatches(player1 int, player2 int) ([]*models.Match, error) {
750750
SELECT
751751
m.id, m.is_finished, m.is_abandoned, m.is_walkover, m.is_bye, m.current_leg_id, m.winner_id, m.created_at, m.updated_at,
752752
m.owe_type_id, mt.id, mt.name, mt.description,
753-
mm.id, mm.name, mm.short_name, mm.wins_required, mm.legs_required, mm.is_draw_possible, mm.is_challenge,
753+
mm.id, mm.name, mm.short_name, mm.wins_required, mm.legs_required, mm.is_draw_possible, mm.is_challenge
754754
FROM matches m
755755
JOIN match_type mt ON mt.id = m.match_type_id
756756
JOIN match_mode mm ON mm.id = m.match_mode_id
@@ -794,7 +794,7 @@ func GetPlayerLastMatches(playerID int, limit int) ([]*models.Match, error) {
794794
SELECT
795795
m.id, m.is_finished, m.is_abandoned, m.is_walkover, m.is_bye, m.current_leg_id, m.winner_id, m.created_at, m.updated_at,
796796
m.owe_type_id, mt.id, mt.name, mt.description,
797-
mm.id, mm.name, mm.short_name, mm.wins_required, mm.legs_required, mm.is_draw_possible, mm.is_challenge,
797+
mm.id, mm.name, mm.short_name, mm.wins_required, mm.legs_required, mm.is_draw_possible, mm.is_challenge
798798
FROM matches m
799799
JOIN match_type mt ON mt.id = m.match_type_id
800800
JOIN match_mode mm ON mm.id = m.match_mode_id

0 commit comments

Comments
 (0)