From 9d73dc393cf84f6473304528f09e7b8696ed6510 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Sat, 6 Jun 2020 05:10:36 -0700 Subject: [PATCH] Fix admin interface to work once again This has been broken since commit 4c810ccb16ea6cfcdcb7f507aea2affc2c36f163 where we renamed "clients" to "players" but missed this reference. How I miss static checking for things like this... --- lmno.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lmno.js b/lmno.js index b85041e..db0d35b 100644 --- a/lmno.js +++ b/lmno.js @@ -267,7 +267,7 @@ app.get('/admin/', auth_admin, (request, response) => { let idle = []; for (let id in lmno.games) { - if (lmno.games[id].clients.length) + if (lmno.games[id].players.length) active.push(lmno.games[id]); else idle.push(lmno.games[id]); -- 2.43.0