fix: 500 error in Notion integration API (#12934)

pull/12939/head
Hiroki Nagai 1 year ago committed by GitHub
parent c8b4a76530
commit 15ee1e11be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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
)

Loading…
Cancel
Save