Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api/services/datasource_provider_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def is_system_oauth_params_exist(self, datasource_provider_id: DatasourceProvide
"""
check if system oauth params exist
"""
with Session(db.engine).no_autoflush as session:
with Session(db.engine) as session:
return (
session.scalar(
select(DatasourceOauthParamConfig)
Expand Down Expand Up @@ -510,7 +510,7 @@ def get_oauth_client(self, tenant_id: str, datasource_provider_id: DatasourcePro
"""
provider = datasource_provider_id.provider_name
plugin_id = datasource_provider_id.plugin_id
with Session(db.engine).no_autoflush as session:
with Session(db.engine) as session:
# get tenant oauth client params
tenant_oauth_client_params = session.scalar(
select(DatasourceOauthTenantParamConfig)
Expand Down
Loading