Skip to content

Commit

Permalink
fix: using dict() instead of model_dump()
Browse files Browse the repository at this point in the history
dict() is deprecated since Pydantic 2

Signed-off-by: Grant Ramsay <[email protected]>
  • Loading branch information
seapagan committed Aug 27, 2023
1 parent 75843b2 commit 49834b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/resources/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async def login(
endpoint to return a new JWT Token. The Refresh token will last 30 days, and
cannot be refreshed.
"""
token, refresh = await UserManager.login(user_data.dict(), session)
token, refresh = await UserManager.login(user_data.model_dump(), session)
return {"token": token, "refresh": refresh}


Expand Down

0 comments on commit 49834b3

Please sign in to comment.