Skip to content

Commit

Permalink
fixes stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Oct 13, 2024
1 parent a0b0aaf commit 21ba18e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions tests/test-server/override_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,5 @@ def transform_logged_data(data: Any, visited: Union[Set[Any], None] = None) -> A
return data.to_json()
if isinstance(data, IsVerifiedSCV):
return "IsVerifiedSCV"

return data
8 changes: 4 additions & 4 deletions tests/test-server/test_functions_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ async def consume_code_post(
) -> Any:
o = await api_options.request.json()
assert o is not None
if o.get("user_context", {}).get("DO_LINK") is not None:
user_context["DO_LINK"] = o["user_context"]["DO_LINK"]
if o.get("userContext", {}).get("DO_LINK") is not None:
user_context["DO_LINK"] = o["userContext"]["DO_LINK"]
return await og(
pre_auth_session_id,
user_input_code,
Expand Down Expand Up @@ -417,8 +417,8 @@ async def sign_up_post(
if "signUpPOST" in eval_str:
n = await api_options.request.json()
assert n is not None
if n.get("user_context", {}).get("DO_LINK") is not None:
user_context["DO_LINK"] = n["user_context"]["DO_LINK"]
if n.get("userContext", {}).get("DO_LINK") is not None:
user_context["DO_LINK"] = n["userContext"]["DO_LINK"]
return await og_sign_up_post(
form_fields,
tenant_id,
Expand Down

0 comments on commit 21ba18e

Please sign in to comment.