feat: local Game
This commit is contained in:
@@ -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]
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user