summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-07-24 12:04:57 +0200
committerTor Andersson <tor@ccxvii.net>2023-08-10 22:34:33 +0200
commit1a90cb82b461568579e481f90b536e5cbd4fbf50 (patch)
treeea961cb16cee5cfc906db8920d9da9402745d047 /server.js
parent359e2c62ca54cf41d70635a994ca748fcca50f14 (diff)
downloadserver-1a90cb82b461568579e481f90b536e5cbd4fbf50.tar.gz
Fix rematch button.
Diffstat (limited to 'server.js')
-rw-r--r--server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.js b/server.js
index 3fc6274..38093c0 100644
--- a/server.js
+++ b/server.js
@@ -1121,7 +1121,7 @@ const SQL_DELETE_PLAYER_ROLE = SQL("DELETE FROM players WHERE game_id=? AND role
const SQL_SELECT_OPEN_GAMES = SQL(`SELECT * FROM games WHERE status=${STATUS_OPEN}`)
const SQL_COUNT_OPEN_GAMES = SQL(`SELECT COUNT(*) FROM games WHERE owner_id=? AND status=${STATUS_OPEN}`).pluck()
-const SQL_SELECT_REMATCH = SQL(`SELECT game_id FROM games WHERE status = ${STATUS_FINISHED} AND notice=?`).pluck()
+const SQL_SELECT_REMATCH = SQL(`SELECT game_id FROM games WHERE status < ${STATUS_FINISHED} AND notice=?`).pluck()
const SQL_INSERT_REMATCH = SQL(`
INSERT INTO games
(owner_id, title_id, scenario, options, is_private, is_random, notice)