diff --git a/api/core/workflow/workflow_entry.py b/api/core/workflow/workflow_entry.py index 38fd9e3340..c71026bd3c 100644 --- a/api/core/workflow/workflow_entry.py +++ b/api/core/workflow/workflow_entry.py @@ -300,9 +300,7 @@ class WorkflowEntry: tenant_id=tenant_id, type=type, transfer_method=transfer_method, - remote_url=input_value.get("url") - if transfer_method == FileTransferMethod.REMOTE_URL - else None, + remote_url=input_value.get("url") if transfer_method == FileTransferMethod.REMOTE_URL else None, related_id=input_value.get("uploadedId") if transfer_method == FileTransferMethod.LOCAL_FILE else None,