fix(app_asset_service): reduce maximum preview content size from 5MB to 1MB

This commit is contained in:
Harry
2026-01-19 21:52:18 +08:00
parent d297167fef
commit 5053fae5b4

View File

@ -36,7 +36,7 @@ logger = logging.getLogger(__name__)
class AppAssetService:
MAX_PREVIEW_CONTENT_SIZE = 5 * 1024 * 1024 # 5MB
MAX_PREVIEW_CONTENT_SIZE = 1 * 1024 * 1024 # 1MB
@staticmethod
def get_or_create_assets(session: Session, app_model: App, account_id: str) -> AppAssets: