OK now its fixed
This commit is contained in:
parent
b59efaee5a
commit
ce289be439
|
|
@ -14,7 +14,7 @@ function getGameById(id) {
|
|||
}
|
||||
|
||||
app.get("/:id", async (request, response) => {
|
||||
const game = global.games.get(getGameById(request.params.id).id)
|
||||
const game = global.games.get(getGameById(request.params.id)?.id)
|
||||
if (game) return response.status(400).json({ error: "Game is running" })
|
||||
|
||||
const job = new GameJob()
|
||||
|
|
|
|||
Loading…
Reference in New Issue