fix(user): fix missing greenlet when invalidating cache
This commit is contained in:
@@ -49,9 +49,8 @@ async def upload_avatar(
|
||||
await storage.write_file(storage_path, content, f"image/{format_}")
|
||||
url = await storage.get_file_url(storage_path)
|
||||
current_user.avatar_url = url
|
||||
await session.commit()
|
||||
|
||||
await cache_service.invalidate_user_cache(current_user.id)
|
||||
await session.commit()
|
||||
|
||||
return {
|
||||
"url": url,
|
||||
|
||||
Reference in New Issue
Block a user