chore: Fix import flow error

This commit is contained in:
Fangyin Cheng
2024-08-30 18:22:07 +08:00
parent d152017800
commit 6030fe1579

View File

@@ -517,7 +517,7 @@ async def import_flow(
raise HTTPException(
status_code=400, detail="invalid json file, missing 'flow' key"
)
flow = _parse_flow_template_from_json(json_dict["flow"])
flow = _parse_flow_template_from_json(json_dict)
elif file_extension == "zip":
from ..service.share_utils import _parse_flow_from_zip_file