fix notion page display (#15508)

This commit is contained in:
Jyong 2025-03-11 18:40:02 +08:00 committed by GitHub
parent da01b460fe
commit 1ffda0dd34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -122,7 +122,7 @@ class DataSourceNotionListApi(Resource):
if dataset.data_source_type != "notion_import":
raise ValueError("Dataset is not notion type.")
documents = session.execute(
documents = session.scalars(
select(Document).filter_by(
dataset_id=dataset_id,
tenant_id=current_user.current_tenant_id,