Skip to content

Commit 771f26e

Browse files
author
drowl87
committed
refactor DynamicNode to enhance logging during execution and update version to 0.3.1
1 parent 92f2c9f commit 771f26e

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

nodes/DynamicNode/DynamicNode.node.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,22 @@ export class DynamicNode implements INodeType {
9292

9393
const workflowProxy = this.getWorkflowDataProxy(index);
9494

95+
this.logger.info(`DynamicNode executing item ${index + 1} → email: ${item.json?.payload?.email}`);
96+
9597
const execResult = await this.executeWorkflow(
9698
{ code: template },
9799
[item],
98-
{},
100+
{
101+
contextData: {
102+
$data: item.json,
103+
},
104+
},
99105
{
100106
parentExecution: {
101107
executionId: workflowProxy.$execution.id,
102108
workflowId: workflowProxy.$workflow.id,
103109
},
104-
doNotWaitToFinish,
110+
doNotWaitToFinish: doNotWaitToFinish,
105111
},
106112
);
107113

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "n8n-nodes-dynamic-node",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"description": "A dynamic n8n node wrapper that can execute any node JSON by feeding it at runtime.",
55
"keywords": [
66
"n8n-community-node-package",

0 commit comments

Comments
 (0)