summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-03-08 01:03:26 +0100
committerTor Andersson <tor@ccxvii.net>2024-03-08 20:35:00 +0100
commit918691acfc7bd4b4f197c41926068f0d086279ac (patch)
tree63e95a552e7516ee437dd12efa8d4ae38960cab6 /server.js
parente205a83817af3a38d163f47a564c33c35b5417e7 (diff)
downloadserver-918691acfc7bd4b4f197c41926068f0d086279ac.tar.gz
Fix replay json when invalid/missing user ids.
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 d7d5caf..45fb015 100644
--- a/server.js
+++ b/server.js
@@ -1254,7 +1254,7 @@ const SQL_SELECT_REPLAY = SQL(`
json_object('role', role, 'name', name)
)
from players
- join users using(user_id)
+ left join users using(user_id)
where game_id = outer.game_id
),
'state',