fix(trigger): update outputs in TriggerEventNode to use inputs directly

This commit is contained in:
Harry 2025-10-27 15:35:09 +08:00
parent 29cddc449f
commit 9de7a7d48f

View File

@ -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,
)