fix lobby not found bug

This commit is contained in:
Evan
2025-03-01 12:04:33 -08:00
parent a3ae44ddb1
commit 2c1a148e23
+1 -3
View File
@@ -191,10 +191,8 @@ export function startWorker() {
"/game/:id/exists",
asyncHandler(async (req, res) => {
const lobbyId = req.params.id;
console.log(`checking if game ${lobbyId} exists`);
let gameExists = gm.game(lobbyId);
res.json({
exists: gameExists,
exists: gm.game(lobbyId) != null,
});
}),
);