aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/query.sql
diff options
context:
space:
mode:
Diffstat (limited to 'backend/query.sql')
-rw-r--r--backend/query.sql4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/query.sql b/backend/query.sql
index dc5f384..8a76753 100644
--- a/backend/query.sql
+++ b/backend/query.sql
@@ -46,8 +46,8 @@ ORDER BY games.game_id;
-- name: ListGamesForPlayer :many
SELECT * FROM games
JOIN problems ON games.problem_id = problems.problem_id
-JOIN game_players ON games.game_id = game_players.game_id
-WHERE game_players.user_id = $1
+LEFT JOIN game_players ON games.game_id = game_players.game_id
+WHERE game_players.user_id = $1 OR games.game_id = 39
ORDER BY games.game_id;
-- name: UpdateGameState :exec