From 9cb8bd7b70501032c622b704b7406112e68aeb1d Mon Sep 17 00:00:00 2001 From: I-Have-An-Issue <34550332+I-Have-An-Issue@users.noreply.github.com> Date: Mon, 23 Jan 2023 16:09:08 -0500 Subject: [PATCH] Fix /game/start for real this time --- src/routes/game/start.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/game/start.js b/src/routes/game/start.js index c63d65e..bd1cabb 100644 --- a/src/routes/game/start.js +++ b/src/routes/game/start.js @@ -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", () => {