From bb56f1e755e3e1ce37d75d1636e30b7df3b9fe5e Mon Sep 17 00:00:00 2001 From: rishabhpoddar Date: Thu, 3 Oct 2024 17:03:02 +0530 Subject: [PATCH] more fixes --- tests/frontendIntegration/django2x/polls/views.py | 2 +- tests/frontendIntegration/django3x/polls/views.py | 2 +- tests/frontendIntegration/drf_async/polls/views.py | 2 +- tests/frontendIntegration/drf_sync/polls/views.py | 2 +- tests/frontendIntegration/fastapi-server/app.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) 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())