Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Oct 3, 2024
1 parent 7b9d23c commit bb56f1e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/frontendIntegration/django2x/polls/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion tests/frontendIntegration/django3x/polls/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion tests/frontendIntegration/drf_async/polls/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/frontendIntegration/drf_sync/polls/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/frontendIntegration/fastapi-server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())


Expand Down

0 comments on commit bb56f1e

Please sign in to comment.