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 )