fix: improve download filename handling in S3 storage and asset service

This commit is contained in:
Harry
2026-02-06 16:32:45 +08:00
parent fef42a05ee
commit c61129590d
3 changed files with 8 additions and 9 deletions

View File

@ -363,9 +363,7 @@ class AppAssetService:
) -> str:
with Session(db.engine) as session:
assets = AppAssetService.get_or_create_assets(session, app_model, account_id)
tree = assets.asset_tree
node = tree.get(node_id)
node = assets.asset_tree.get(node_id)
if not node or node.node_type != AssetNodeType.FILE:
raise AppAssetNodeNotFoundError(f"File node {node_id} not found")