瀏覽代碼

fix preview run

tags/2.0.0-beta.1
jyong 2 月之前
父節點
當前提交
5cf795f2b8
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 1
    0
      api/core/workflow/nodes/datasource/datasource_node.py
  2. 2
    1
      api/factories/file_factory.py

+ 1
- 0
api/core/workflow/nodes/datasource/datasource_node.py 查看文件

@@ -202,6 +202,7 @@ class DatasourceNode(Node):
related_id=upload_file.id,
size=upload_file.size,
storage_key=upload_file.key,
url=upload_file.source_url,
)
variable_pool.add([self._node_id, "file"], file_info)
# variable_pool.add([self.node_id, "file"], file_info.to_dict())

+ 2
- 1
api/factories/file_factory.py 查看文件

@@ -345,7 +345,7 @@ def _build_from_datasource_file(
)

return File(
id=mapping.get("id"),
id=mapping.get("datasource_file_id"),
tenant_id=tenant_id,
filename=datasource_file.name,
type=file_type,
@@ -356,6 +356,7 @@ def _build_from_datasource_file(
mime_type=datasource_file.mime_type,
size=datasource_file.size,
storage_key=datasource_file.key,
url=datasource_file.source_url,
)



Loading…
取消
儲存