mirror of
https://github.com/langgenius/dify.git
synced 2026-04-27 11:06:46 +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:
parent
35bbf67175
commit
334e5f19bf
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user