From 83ac38133f86a08805092fe24fc51d67181fba63 Mon Sep 17 00:00:00 2001 From: RHM Date: Sun, 14 Sep 2025 20:01:37 +0200 Subject: [PATCH] dwadwad --- backend/src/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/api.js b/backend/src/api.js index 23be1c1..c6d63ff 100644 --- a/backend/src/api.js +++ b/backend/src/api.js @@ -605,7 +605,7 @@ router.post("/games/:id/turns", asyncHandler(async (req, res) => { if (game.current_playing_user !== user) throw new ApiError(403, "Not your turn"); const [lastTurn] = await conn.query( - "SELECT end_points FROM turns WHERE game = ? AND user = ? ORDER BY id DESC LIMIT 1", + "SELECT round_number, end_points FROM turns WHERE game = ? AND user = ? ORDER BY id DESC LIMIT 1", [gameId, user] );