summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-07 01:58:39 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-07 01:58:39 +0100
commitdbd8f0fa5665a94737a5dcb5f83cbd418127f826 (patch)
tree3bd2bda6943a4fc1ad1e2446dd870b42a628a972 /server.js
parent46c3fddba7038c9472a2c7b1d04d8118c275ab65 (diff)
downloadserver-dbd8f0fa5665a94737a5dcb5f83cbd418127f826.tar.gz
fix crash when timing out tournament games
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 fba2afa..840dab1 100644
--- a/server.js
+++ b/server.js
@@ -2651,7 +2651,7 @@ setTimeout(time_control_ticker, 13 * 1000)
const designs = require("./designs.js")
-const TM_INSERT_BANNED = SQL("insert into tm_banned (user_id, time) values (?, datetime())")
+const TM_INSERT_BANNED = SQL("insert or ignore into tm_banned (user_id, time) values (?, datetime())")
const TM_DELETE_QUEUE_ALL = SQL("delete from tm_queue where user_id=?")
const TM_MAY_JOIN_ANY_SEED = SQL(`