aboutsummaryrefslogtreecommitdiffstats
path: root/backend/ts/api/getCurrentGameState.ts
diff options
context:
space:
mode:
Diffstat (limited to 'backend/ts/api/getCurrentGameState.ts')
-rw-r--r--backend/ts/api/getCurrentGameState.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/ts/api/getCurrentGameState.ts b/backend/ts/api/getCurrentGameState.ts
index 896ccb4..4c87d18 100644
--- a/backend/ts/api/getCurrentGameState.ts
+++ b/backend/ts/api/getCurrentGameState.ts
@@ -12,7 +12,7 @@ export default async function getCurrentGameState(req: Request, res: Response) {
= (await makeQuery("SELECT `gameBoard`, `currentPlayer`, `started`, `data`, `timeTillTurnEnd`, `winner`"
+ " FROM `fia` WHERE `id` = ?",
[req.session.gid]))[0];
-
+
if (dbRes.started === 0) {
res.send(JSON.stringify({ data: dbRes.data }));
} else {