From a7618e537f80807bc0d950d0b14a5fd7eda0f2d3 Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Tue, 11 Mar 2025 17:37:03 +0000 Subject: [PATCH] feat: Update endpoint login --- app/api/endpoints/login.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/endpoints/login.py b/app/api/endpoints/login.py index 3a18340..69834b1 100644 --- a/app/api/endpoints/login.py +++ b/app/api/endpoints/login.py @@ -21,7 +21,7 @@ async def upload_profile( for file in files: contents = await file.read() profile_pic = UserProfile(name=file.filename, data=contents, user_id=user.id) - db.add(profile_pic) + db.add(profile_picture) db.commit() db.refresh(profile_pic) profile_pics.append(profile_pic)