mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
fix(trigger): handle missing subscription constructor in trigger subscription builder
- Updated the `TriggerSubscriptionBuilderService` to return an empty dictionary when the subscription constructor is not available, improving robustness in subscription handling.
This commit is contained in:
@ -385,7 +385,7 @@ class TriggerSubscriptionBuilderService:
|
|||||||
credentials=masked_credentials(
|
credentials=masked_credentials(
|
||||||
schemas=controller.get_credentials_schema(credential_type),
|
schemas=controller.get_credentials_schema(credential_type),
|
||||||
credentials=entity.credentials,
|
credentials=entity.credentials,
|
||||||
),
|
) if controller.get_subscription_constructor() else {},
|
||||||
)
|
)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user