From f37109ef39c342614400594182e0ac371db3e323 Mon Sep 17 00:00:00 2001 From: jyong <718720800@qq.com> Date: Wed, 30 Jul 2025 14:34:38 +0800 Subject: [PATCH] transform document --- api/controllers/console/datasets/data_source.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/controllers/console/datasets/data_source.py b/api/controllers/console/datasets/data_source.py index cfe9e7966f..077282d959 100644 --- a/api/controllers/console/datasets/data_source.py +++ b/api/controllers/console/datasets/data_source.py @@ -124,7 +124,7 @@ class DataSourceNotionListApi(Resource): credential = datasource_provider_service.get_real_credential_by_id( tenant_id=current_user.current_tenant_id, credential_id=credential_id, - provider="notion", + provider="notion_datasource", plugin_id="langgenius/notion_datasource", ) if not credential: @@ -155,8 +155,8 @@ class DataSourceNotionListApi(Resource): from core.datasource.datasource_manager import DatasourceManager datasource_runtime = DatasourceManager.get_datasource_runtime( - provider_id="langgenius/notion_datasource/notion", - datasource_name="notion", + provider_id="langgenius/notion_datasource/notion_datasource", + datasource_name="notion_datasource", tenant_id=current_user.current_tenant_id, datasource_type=DatasourceProviderType.ONLINE_DOCUMENT, ) @@ -209,7 +209,7 @@ class DataSourceNotionApi(Resource): credential = datasource_provider_service.get_real_credential_by_id( tenant_id=current_user.current_tenant_id, credential_id=credential_id, - provider="notion", + provider="notion_datasource", plugin_id="langgenius/notion_datasource", )