diff --git a/tests/frontendIntegration/django2x/polls/views.py b/tests/frontendIntegration/django2x/polls/views.py index e2472e21..eda19409 100644 --- a/tests/frontendIntegration/django2x/polls/views.py +++ b/tests/frontendIntegration/django2x/polls/views.py @@ -405,7 +405,7 @@ def login(request: HttpRequest): if request.method == "POST": user_id = json.loads(request.body)["userId"] - session_ = create_new_session(request, "public", user_id) + session_ = create_new_session(request, "public", RecipeUserId(user_id)) return HttpResponse(session_.get_user_id()) else: return send_options_api_response() diff --git a/tests/frontendIntegration/django3x/polls/views.py b/tests/frontendIntegration/django3x/polls/views.py index 0ec1fa4d..1e182fb7 100644 --- a/tests/frontendIntegration/django3x/polls/views.py +++ b/tests/frontendIntegration/django3x/polls/views.py @@ -408,7 +408,7 @@ async def login(request: HttpRequest): if request.method == "POST": user_id = json.loads(request.body)["userId"] - session_ = await create_new_session(request, "public", user_id) + session_ = await create_new_session(request, "public", RecipeUserId(user_id)) return HttpResponse(session_.get_user_id()) else: return send_options_api_response() diff --git a/tests/frontendIntegration/drf_async/polls/views.py b/tests/frontendIntegration/drf_async/polls/views.py index 757ae922..e13848ae 100644 --- a/tests/frontendIntegration/drf_async/polls/views.py +++ b/tests/frontendIntegration/drf_async/polls/views.py @@ -434,7 +434,7 @@ async def login(request: Request): # type: ignore if request.method == "POST": # type: ignore user_id = request.data["userId"] # type: ignore - session_ = await create_new_session(request, "public", user_id) # type: ignore + session_ = await create_new_session(request, "public", RecipeUserId(user_id)) # type: ignore return Response(session_.get_user_id()) # type: ignore else: return send_options_api_response() # type: ignore diff --git a/tests/frontendIntegration/drf_sync/polls/views.py b/tests/frontendIntegration/drf_sync/polls/views.py index bbcbbb5d..cd776104 100644 --- a/tests/frontendIntegration/drf_sync/polls/views.py +++ b/tests/frontendIntegration/drf_sync/polls/views.py @@ -434,7 +434,7 @@ def login(request: Request): # type: ignore if request.method == "POST": # type: ignore user_id = request.data["userId"] # type: ignore - session_ = create_new_session(request, "public", user_id) # type: ignore + session_ = create_new_session(request, "public", RecipeUserId(user_id)) # type: ignore return Response(session_.get_user_id()) # type: ignore else: return send_options_api_response() # type: ignore diff --git a/tests/frontendIntegration/fastapi-server/app.py b/tests/frontendIntegration/fastapi-server/app.py index be1d31f9..addaf27a 100644 --- a/tests/frontendIntegration/fastapi-server/app.py +++ b/tests/frontendIntegration/fastapi-server/app.py @@ -273,7 +273,7 @@ def login_options(): @app.post("/login") async def login(request: Request): user_id = (await request.json())["userId"] - _session = await create_new_session(request, "public", user_id) + _session = await create_new_session(request, "public", RecipeUserId(user_id)) return PlainTextResponse(content=_session.get_user_id())