File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
supertokens_python/recipe/multitenancy Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 3737
3838async def create_or_update_tenant (
3939 tenant_id : Optional [str ],
40- config : TenantConfig ,
40+ config : Optional [ TenantConfig ] ,
4141 user_context : Optional [Dict [str , Any ]] = None ,
4242) -> CreateOrUpdateTenantOkResult :
4343 if user_context is None :
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ async def get_tenant_id(
166166 async def create_or_update_tenant (
167167 self ,
168168 tenant_id : Optional [str ],
169- config : TenantConfig ,
169+ config : Optional [ TenantConfig ] ,
170170 user_context : Dict [str , Any ],
171171 ) -> CreateOrUpdateTenantOkResult :
172172 pass
Original file line number Diff line number Diff line change @@ -132,14 +132,14 @@ async def get_tenant_id(
132132 async def create_or_update_tenant (
133133 self ,
134134 tenant_id : Optional [str ],
135- config : TenantConfig ,
135+ config : Optional [ TenantConfig ] ,
136136 user_context : Dict [str , Any ],
137137 ) -> CreateOrUpdateTenantOkResult :
138138 response = await self .querier .send_put_request (
139139 NormalisedURLPath ("/recipe/multitenancy/tenant" ),
140140 {
141141 "tenantId" : tenant_id ,
142- ** config .to_json (),
142+ ** ( config .to_json () if config is not None else {} ),
143143 },
144144 )
145145 return CreateOrUpdateTenantOkResult (
Original file line number Diff line number Diff line change 2020
2121def create_or_update_tenant (
2222 tenant_id : Optional [str ],
23- config : TenantConfig ,
23+ config : Optional [ TenantConfig ] ,
2424 user_context : Optional [Dict [str , Any ]] = None ,
2525):
2626 if user_context is None :
You can’t perform that action at this time.
0 commit comments