File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
supertokens_python/recipe/dashboard/api Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 36
36
37
37
async def handle_analytics_post (
38
38
_ : APIInterface ,
39
- _tenant_id : str ,
39
+ tenant_id : str ,
40
40
api_options : APIOptions ,
41
41
_user_context : Dict [str , Any ],
42
42
) -> AnalyticsResponse :
@@ -68,7 +68,7 @@ async def handle_analytics_post(
68
68
telemetry_id = response ["telemetryId" ]
69
69
70
70
number_of_users = await Supertokens .get_instance ().get_user_count (
71
- include_recipe_ids = None
71
+ include_recipe_ids = None , tenant_id = tenant_id ,
72
72
)
73
73
74
74
except Exception as __ :
Original file line number Diff line number Diff line change 17
17
18
18
async def handle_sessions_get (
19
19
_api_interface : APIInterface ,
20
- _tenant_id : str ,
20
+ tenant_id : str ,
21
21
api_options : APIOptions ,
22
22
user_context : Dict [str , Any ],
23
23
) -> UserSessionsGetAPIResponse :
@@ -26,9 +26,8 @@ async def handle_sessions_get(
26
26
if user_id is None :
27
27
raise_bad_input_exception ("Missing required parameter 'userId'" )
28
28
29
- # TODO: Pass tenant id here
30
29
session_handles = await get_all_session_handles_for_user (
31
- user_id , "pass-tenant-id" , user_context
30
+ user_id , tenant_id , user_context
32
31
)
33
32
sessions : List [Optional [SessionInfo ]] = [None for _ in session_handles ]
34
33
You can’t perform that action at this time.
0 commit comments