OK now its fixed

This commit is contained in:
I-Have-An-Issue 2023-01-23 16:17:27 -05:00
parent b59efaee5a
commit ce289be439
No known key found for this signature in database
GPG Key ID: E55435DEA0825091
1 changed files with 1 additions and 1 deletions

View File

@ -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()