mirror of https://github.com/langgenius/dify.git
feat(trigger): add event_name to PluginTriggerMetadata for enhanced trigger handling
- Introduced event_name attribute in PluginTriggerMetadata to improve metadata clarity. - Updated dispatch_triggered_workflow function to include event_name when dispatching triggered workflows.
This commit is contained in:
parent
c16421df27
commit
18fd79fbe6
|
|
@ -61,6 +61,7 @@ class PluginTriggerMetadata(TriggerMetadata):
|
|||
endpoint_id: str
|
||||
plugin_unique_identifier: str
|
||||
provider_id: str
|
||||
event_name: str
|
||||
icon_filename: str
|
||||
icon_dark_filename: str
|
||||
|
||||
|
|
|
|||
|
|
@ -207,6 +207,7 @@ def dispatch_triggered_workflow(
|
|||
plugin_unique_identifier=provider_controller.plugin_unique_identifier or "",
|
||||
endpoint_id=subscription.endpoint_id,
|
||||
provider_id=subscription.provider_id,
|
||||
event_name=event_name,
|
||||
icon_filename=trigger_entity.identity.icon or "",
|
||||
icon_dark_filename=trigger_entity.identity.icon_dark or "",
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in New Issue