fix: bind tenant id

This commit is contained in:
Vladislav Syrochkin 2025-06-25 13:54:48 +05:00
parent 53bf173373
commit 919758ab69
2 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ async def get_all_account(
return user_list
@api_router.get("/{user_id}", dependencies=[Depends(bearer_schema)], response_model=User)
@api_router.get("/{user_id}", dependencies=[Depends(bearer_schema)], response_model=UserUpdate)
async def get_account(
user_id: int,
connection: AsyncConnection = Depends(get_connection_dep),

View File

@ -146,7 +146,7 @@ export default function UserCreate({ closeDrawer }: UserCreateProps) {
login: '',
password: '',
email: '',
tenant: '',
bindTenantId: '',
role: '',
status: '',
}}
@ -189,7 +189,7 @@ export default function UserCreate({ closeDrawer }: UserCreateProps) {
<Form.Item
label={t('tenant')}
name="tenant"
name="bindTenantId"
rules={[{ required: true, message: t('tenantMessage') }]}
>
<Input />