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)