make GameManager more efficient

This commit is contained in:
Evan
2025-03-02 09:39:36 -08:00
parent 38365fd9d0
commit a9caee6323
3 changed files with 33 additions and 37 deletions
+1 -1
View File
@@ -192,7 +192,7 @@ export function startWorker() {
asyncHandler(async (req, res) => {
const lobbyId = req.params.id;
console.log(`checking if game ${lobbyId} exists`);
let gameExists = gm.hasActiveGame(lobbyId);
let gameExists = gm.game(lobbyId);
res.json({
exists: gameExists,
});