mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(core): Don't use unbound context methods in code sandboxes (#11914)
This commit is contained in:
committed by
GitHub
parent
2c252b0b2d
commit
f6c0d045e9
@@ -35,8 +35,8 @@ export function getSandboxContext(
|
||||
};
|
||||
return {
|
||||
// from NodeExecuteFunctions
|
||||
$getNodeParameter: this.getNodeParameter,
|
||||
$getWorkflowStaticData: this.getWorkflowStaticData,
|
||||
$getNodeParameter: this.getNodeParameter.bind(this),
|
||||
$getWorkflowStaticData: this.getWorkflowStaticData.bind(this),
|
||||
helpers,
|
||||
|
||||
// to bring in all $-prefixed vars and methods from WorkflowDataProxy
|
||||
|
||||
Reference in New Issue
Block a user