feat: Update endpoint login
This commit is contained in:
parent
8342b27dd1
commit
a7618e537f
@ -21,7 +21,7 @@ async def upload_profile(
|
|||||||
for file in files:
|
for file in files:
|
||||||
contents = await file.read()
|
contents = await file.read()
|
||||||
profile_pic = UserProfile(name=file.filename, data=contents, user_id=user.id)
|
profile_pic = UserProfile(name=file.filename, data=contents, user_id=user.id)
|
||||||
db.add(profile_pic)
|
db.add(profile_picture)
|
||||||
db.commit()
|
db.commit()
|
||||||
db.refresh(profile_pic)
|
db.refresh(profile_pic)
|
||||||
profile_pics.append(profile_pic)
|
profile_pics.append(profile_pic)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user