Fixed missing await

This commit is contained in:
Profitroll 2023-06-23 07:40:37 +00:00
parent 6be51c5aaa
commit a5cd6a215f
Signed by: profitroll
GPG Key ID: FA35CAB49DACD3B2

View File

@ -127,7 +127,7 @@ async def photo_upload(
async with aiofiles.open(
path.join("data", "users", current_user.user, "albums", album, filename), "wb"
) as f:
f.write(await file.read())
await f.write(await file.read())
file_hash = await get_phash(
path.join("data", "users", current_user.user, "albums", album, filename)