Skip to content

Commit

Permalink
refactor: replace get_user_by_id with get_user on login
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Dec 7, 2023
1 parent fab0202 commit 74ba1a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/app/auth/auth_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async def my_data(
user_data(dict): The dict of user data.
"""
# Save user info in User table
user = await user_crud.get_user_by_id(db, user_data["id"])
user = await user_crud.get_user(db, user_data["id"])
if not user:
user_by_username = await user_crud.get_user_by_username(
db, user_data["username"]
Expand Down

0 comments on commit 74ba1a6

Please sign in to comment.