diff --git a/classquiz/routers/quiz.py b/classquiz/routers/quiz.py index e44cb09..a534d39 100644 --- a/classquiz/routers/quiz.py +++ b/classquiz/routers/quiz.py @@ -55,7 +55,7 @@ async def start_quiz(quiz_id: str, user: User = Depends(get_current_user)): @router.get("/join/{game_pin}") async def get_game_id(game_pin: str): - redis_res = (await redis.search(f"game:{game_pin}")).decode() + redis_res = (await redis.get(f"game:{game_pin}")).decode() if redis_res is None: raise HTTPException(status_code=404, detail="game not found") else: