Skip to content

Commit 21ba18e

Browse files
committed
fixes stuff
1 parent a0b0aaf commit 21ba18e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

tests/test-server/override_logging.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,3 +151,5 @@ def transform_logged_data(data: Any, visited: Union[Set[Any], None] = None) -> A
151151
return data.to_json()
152152
if isinstance(data, IsVerifiedSCV):
153153
return "IsVerifiedSCV"
154+
155+
return data

tests/test-server/test_functions_mapper.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ async def consume_code_post(
346346
) -> Any:
347347
o = await api_options.request.json()
348348
assert o is not None
349-
if o.get("user_context", {}).get("DO_LINK") is not None:
350-
user_context["DO_LINK"] = o["user_context"]["DO_LINK"]
349+
if o.get("userContext", {}).get("DO_LINK") is not None:
350+
user_context["DO_LINK"] = o["userContext"]["DO_LINK"]
351351
return await og(
352352
pre_auth_session_id,
353353
user_input_code,
@@ -417,8 +417,8 @@ async def sign_up_post(
417417
if "signUpPOST" in eval_str:
418418
n = await api_options.request.json()
419419
assert n is not None
420-
if n.get("user_context", {}).get("DO_LINK") is not None:
421-
user_context["DO_LINK"] = n["user_context"]["DO_LINK"]
420+
if n.get("userContext", {}).get("DO_LINK") is not None:
421+
user_context["DO_LINK"] = n["userContext"]["DO_LINK"]
422422
return await og_sign_up_post(
423423
form_fields,
424424
tenant_id,

0 commit comments

Comments
 (0)