mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
chore: adapt to SQLModel 16 & SQLAlchemy 2.x
This commit is contained in:
parent
938c3a2349
commit
c8f6aff996
24 changed files with 120 additions and 123 deletions
|
|
@ -84,8 +84,8 @@ async def get_organization_users(
|
|||
# skip this user
|
||||
continue
|
||||
|
||||
user = UserRead.from_orm(user)
|
||||
role = RoleRead.from_orm(role)
|
||||
user = UserRead.model_validate(user)
|
||||
role = RoleRead.model_validate(role)
|
||||
|
||||
org_user = OrganizationUser(
|
||||
user=user,
|
||||
|
|
@ -293,8 +293,8 @@ async def invite_batch_users(
|
|||
# skip this user
|
||||
continue
|
||||
|
||||
org = OrganizationRead.from_orm(org)
|
||||
user = UserRead.from_orm(user)
|
||||
org = OrganizationRead.model_validate(org)
|
||||
user = UserRead.model_validate(user)
|
||||
|
||||
isEmailSent = send_invite_email(
|
||||
org,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue