mirror of
https://github.com/langgenius/dify.git
synced 2026-04-28 11:56:55 +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
|
# Get trigger data passed when workflow was triggered
|
||||||
inputs = dict(self.graph_runtime_state.variable_pool.user_inputs)
|
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 = {
|
metadata = {
|
||||||
WorkflowNodeExecutionMetadataKey.TRIGGER_INFO: {
|
WorkflowNodeExecutionMetadataKey.TRIGGER_INFO: {
|
||||||
**inputs,
|
**inputs,
|
||||||
@ -81,6 +77,6 @@ class TriggerEventNode(Node):
|
|||||||
return NodeRunResult(
|
return NodeRunResult(
|
||||||
status=WorkflowNodeExecutionStatus.SUCCEEDED,
|
status=WorkflowNodeExecutionStatus.SUCCEEDED,
|
||||||
inputs={},
|
inputs={},
|
||||||
outputs=outputs,
|
outputs=inputs,
|
||||||
metadata=metadata,
|
metadata=metadata,
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user