Fix /game/start for real this time

This commit is contained in:
I-Have-An-Issue 2023-01-23 16:09:08 -05:00
parent 87593c006d
commit 9cb8bd7b70
No known key found for this signature in database
GPG Key ID: E55435DEA0825091
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ app.get("/:id", async (request, response) => {
if (game) return response.status(400).json({ error: "Game is running" })
const job = new GameJob()
const result = await job.StartGame(request.params.id).catch((_) => _)
job.StartGame(request.params.id).catch((_) => _)
global.games.set(job.id, job)
job.proc.once("exit", () => {