mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-16 08:53:25 +00:00
make GameManager more efficient
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user