From 15ee1e11bea27fb1c3be1c881c77354f9e4b25f9 Mon Sep 17 00:00:00 2001 From: Hiroki Nagai <82458324+nagaihiroki-git@users.noreply.github.com> Date: Wed, 22 Jan 2025 15:38:01 +0900 Subject: [PATCH] fix: 500 error in Notion integration API (#12934) --- api/controllers/console/datasets/data_source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/controllers/console/datasets/data_source.py b/api/controllers/console/datasets/data_source.py index 3feab4640b..5e180b5cf1 100644 --- a/api/controllers/console/datasets/data_source.py +++ b/api/controllers/console/datasets/data_source.py @@ -135,7 +135,7 @@ class DataSourceNotionListApi(Resource): data_source_info = json.loads(document.data_source_info) exist_page_ids.append(data_source_info["notion_page_id"]) # get all authorized pages - data_source_bindings = session.execute( + data_source_bindings = session.scalars( select(DataSourceOauthBinding).filter_by( tenant_id=current_user.current_tenant_id, provider="notion", disabled=False )