From 74ba1a66fb8613bbad136b9589642e73d98f8490 Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Thu, 7 Dec 2023 15:43:27 +0000 Subject: [PATCH] refactor: replace get_user_by_id with get_user on login --- src/backend/app/auth/auth_routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/app/auth/auth_routes.py b/src/backend/app/auth/auth_routes.py index 32ce5580f4..38a3167869 100644 --- a/src/backend/app/auth/auth_routes.py +++ b/src/backend/app/auth/auth_routes.py @@ -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"]