Skip to content

Commit 9bf61f3

Browse files
one more
1 parent 4e3067b commit 9bf61f3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

api/services/auth/api_key_auth_service.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ def create_provider_auth(tenant_id: str, args: dict):
3838
def get_auth_credentials(tenant_id: str, category: str, provider: str):
3939
data_source_api_key_bindings = (
4040
db.session.query(DataSourceApiKeyAuthBinding)
41-
.where(
42-
DataSourceApiKeyAuthBinding.tenant_id == tenant_id,
43-
DataSourceApiKeyAuthBinding.category == category,
44-
DataSourceApiKeyAuthBinding.provider == provider,
45-
DataSourceApiKeyAuthBinding.disabled.is_(False),
41+
.filter_by(
42+
tenant_id=tenant_id,
43+
category=category,
44+
provider=provider,
45+
disabled=False,
4646
)
4747
.first()
4848
)

0 commit comments

Comments
 (0)