From dbd8f0fa5665a94737a5dcb5f83cbd418127f826 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 7 Nov 2024 01:58:39 +0100 Subject: fix crash when timing out tournament games --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(` -- cgit v1.2.3