mirror of
https://github.com/langgenius/dify.git
synced 2026-01-14 06:07:33 +08:00
fix(trigger): update outputs in TriggerEventNode to use inputs directly
This commit is contained in:
parent
29cddc449f
commit
9de7a7d48f
@ -66,10 +66,6 @@ class TriggerEventNode(Node):
|
||||
|
||||
# Get trigger data passed when workflow was triggered
|
||||
inputs = dict(self.graph_runtime_state.variable_pool.user_inputs)
|
||||
|
||||
# The event already ran before workflow execution, so we can get the outputs from the inputs
|
||||
outputs = inputs.get("inputs", {})
|
||||
|
||||
metadata = {
|
||||
WorkflowNodeExecutionMetadataKey.TRIGGER_INFO: {
|
||||
**inputs,
|
||||
@ -81,6 +77,6 @@ class TriggerEventNode(Node):
|
||||
return NodeRunResult(
|
||||
status=WorkflowNodeExecutionStatus.SUCCEEDED,
|
||||
inputs={},
|
||||
outputs=outputs,
|
||||
outputs=inputs,
|
||||
metadata=metadata,
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user