fix(api): fix basedpyright checks

This commit is contained in:
Harry 2025-12-29 20:02:25 +08:00
parent 16aa9254ad
commit b6b7ff0aeb
1 changed files with 1 additions and 1 deletions

View File

@ -875,7 +875,7 @@ class TriggerProviderService:
if not subscription:
raise ValueError(f"Subscription {subscription_id} not found")
credential_type = subscription.credential_type
credential_type = CredentialType.of(subscription.credential_type)
if credential_type not in {CredentialType.OAUTH2, CredentialType.API_KEY}:
raise ValueError(f"Credential type {credential_type} not supported for auto creation")