mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 12:51:30 +00:00
fix lobby not found bug
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user