feat: local Game

This commit is contained in:
2025-09-14 04:52:20 +02:00
parent 62932b94e7
commit 0e0a127c60
2 changed files with 73 additions and 1 deletions

View File

@@ -301,7 +301,7 @@ router.post("/games/:id/players", asyncHandler(async (req, res) => {
if (alreadyJoined.length) throw new ApiError(400, "User already joined this game");
const [gameRows] = await conn.query(
"SELECT * FROM current_games WHERE id = ? AND is_open = TRUE AND is_local = FALSE",
"SELECT * FROM current_games WHERE id = ? AND is_open = TRUE",// AND is_local = FALSE", TODO: wehn im body der richtige creator angegeben wurde wir user zu dem local game hinzugefügt
[gameId]
);