This commit is contained in:
2025-09-14 20:01:37 +02:00
parent f9ff60934f
commit 83ac38133f

View File

@@ -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]
);