mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
⚡ Make static data available in Function-Nodes
This commit is contained in:
parent
542ae1e785
commit
1b28825b94
|
@ -48,6 +48,7 @@ export class Function implements INodeType {
|
|||
// Define the global objects for the custom function
|
||||
const sandbox = {
|
||||
getNodeParameter: this.getNodeParameter,
|
||||
getWorkflowStaticData: this.getWorkflowStaticData,
|
||||
helpers: this.helpers,
|
||||
items,
|
||||
// To be able to access data of other items
|
||||
|
|
|
@ -52,6 +52,7 @@ export class FunctionItem implements INodeType {
|
|||
return item.binary;
|
||||
},
|
||||
getNodeParameter: this.getNodeParameter,
|
||||
getWorkflowStaticData: this.getWorkflowStaticData,
|
||||
helpers: this.helpers,
|
||||
item: item.json,
|
||||
setBinaryData: (data: IBinaryKeyData) => {
|
||||
|
|
Loading…
Reference in a new issue