dwadwad
This commit is contained in:
@@ -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");
|
if (game.current_playing_user !== user) throw new ApiError(403, "Not your turn");
|
||||||
|
|
||||||
const [lastTurn] = await conn.query(
|
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]
|
[gameId, user]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user