feat: Update endpoint login

This commit is contained in:
Backend IM Bot 2025-03-11 17:37:03 +00:00
parent 8342b27dd1
commit a7618e537f

View File

@ -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)