summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-10-18 20:49:56 +0200
committerTor Andersson <tor@ccxvii.net>2024-10-18 20:49:56 +0200
commit3ec3fc79c631c83af00dbbd77eefae144b76a7ee (patch)
treee5ccfa04f72f7d74459c8c36953a4d32225be70e
parente616cd369742b798bb7491c65e24c234dae0da06 (diff)
downloadserver-3ec3fc79c631c83af00dbbd77eefae144b76a7ee.tar.gz
Fix bug when inserting winners in level 2 tournament.
-rw-r--r--server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.js b/server.js
index 3540a7c..37b8f75 100644
--- a/server.js
+++ b/server.js
@@ -2813,7 +2813,7 @@ const TM_SELECT_GAMES = SQL(`
game_id
`)
-const TM_SELECT_WINNERS = SQL("select * from tm_winners where pool_id = ?")
+const TM_SELECT_WINNERS = SQL("select user_id from tm_winners where pool_id = ?").pluck()
const TM_SELECT_PLAYERS_2P = SQL(`
with