mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor(core): Refactor some imports to reduce baseline memory usage (#15916)
This commit is contained in:
committed by
GitHub
parent
8abd556597
commit
7c806ff532
@@ -1,4 +1,4 @@
|
||||
import _ from 'lodash';
|
||||
import pickBy from 'lodash/pickBy';
|
||||
import {
|
||||
type INodeExecutionData,
|
||||
NodeConnectionTypes,
|
||||
@@ -217,7 +217,7 @@ export class ExecuteWorkflowTrigger implements INodeType {
|
||||
...Object.fromEntries(newParams.fields.map((x) => [x.name, FALLBACK_DEFAULT_VALUE])),
|
||||
// Need to trim to the expected schema to support legacy Execute Workflow callers passing through all their data
|
||||
// which we do not want to expose past this node.
|
||||
..._.pickBy(json, (_value, key) => newKeys.has(key)),
|
||||
...pickBy(json, (_value, key) => newKeys.has(key)),
|
||||
},
|
||||
index,
|
||||
binary,
|
||||
|
||||
Reference in New Issue
Block a user