chore: adapt to SQLModel 16 & SQLAlchemy 2.x

This commit is contained in:
swve 2024-04-01 12:20:29 +02:00
parent 938c3a2349
commit c8f6aff996
24 changed files with 120 additions and 123 deletions

View file

@ -93,9 +93,9 @@ async def send_reset_password_code(
ex=ttl,
)
user = UserRead.from_orm(user)
user = UserRead.model_validate(user)
org = OrganizationRead.from_orm(org)
org = OrganizationRead.model_validate(org)
# Send reset code via email
isEmailSent = send_password_reset_email(