From 087a4fbd144dfd2b07ce149b4e03ab97f8b1c68e Mon Sep 17 00:00:00 2001 From: jyong <718720800@qq.com> Date: Mon, 11 Aug 2025 18:26:41 +0800 Subject: [PATCH] add credential id --- api/core/datasource/entities/datasource_entities.py | 2 +- api/core/workflow/nodes/datasource/datasource_node.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/core/datasource/entities/datasource_entities.py b/api/core/datasource/entities/datasource_entities.py index 9ce580912f..d55e1392c3 100644 --- a/api/core/datasource/entities/datasource_entities.py +++ b/api/core/datasource/entities/datasource_entities.py @@ -359,5 +359,5 @@ class OnlineDriveDownloadFileRequest(BaseModel): Get online driver file """ - key: str = Field(..., description="The name of the file") + id: str = Field(..., description="The id of the file") bucket: Optional[str] = Field(None, description="The name of the bucket") diff --git a/api/core/workflow/nodes/datasource/datasource_node.py b/api/core/workflow/nodes/datasource/datasource_node.py index 201d062ade..d4f1c4f392 100644 --- a/api/core/workflow/nodes/datasource/datasource_node.py +++ b/api/core/workflow/nodes/datasource/datasource_node.py @@ -165,7 +165,7 @@ class DatasourceNode(BaseNode): datasource_runtime.online_drive_download_file( user_id=self.user_id, request=OnlineDriveDownloadFileRequest( - key=datasource_info.get("key"), + id=datasource_info.get("id"), bucket=datasource_info.get("bucket"), ), provider_type=datasource_type,