summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-03-17 13:20:15 +0100
committerTor Andersson <tor@ccxvii.net>2023-03-17 13:20:56 +0100
commit89752a9f5c3876e81ecbd7314f9740644a8ba56b (patch)
treef9f7986ede644e208e29450cb1f9b093a40830e0 /server.js
parentbd835413cf9767c35aa3b0e7c55e200a67127fb8 (diff)
downloadserver-89752a9f5c3876e81ecbd7314f9740644a8ba56b.tar.gz
Avoid action name collision with debugging command "restore".
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 b73221f..d492935 100644
--- a/server.js
+++ b/server.js
@@ -2222,7 +2222,7 @@ function on_restore(socket, state_text) {
state_text = JSON.stringify(state)
SQL_UPDATE_GAME_RESULT.run(1, null, socket.game_id)
SQL_UPDATE_GAME_STATE.run(socket.game_id, state_text, state.active)
- put_replay(socket.game_id, null, 'restore', state_text)
+ put_replay(socket.game_id, null, 'debug-restore', state_text)
for (let other of game_clients[socket.game_id])
send_state(other, state)
} catch (err) {