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