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,6 +1,6 @@
|
||||
import { json as generateSchemaFromExample, type SchemaObject } from 'generate-schema';
|
||||
import type { JSONSchema7 } from 'json-schema';
|
||||
import _ from 'lodash';
|
||||
import pickBy from 'lodash/pickBy';
|
||||
import type {
|
||||
FieldValueOption,
|
||||
FieldType,
|
||||
@@ -157,7 +157,7 @@ export function getCurrentWorkflowInputData(this: IExecuteFunctions | ISupplyDat
|
||||
const filteredInputData: INodeExecutionData[] = inputData.map(({ json, binary }, index) => ({
|
||||
index,
|
||||
pairedItem: { item: index },
|
||||
json: _.pickBy(json, (_v, key) => !removedKeys.has(key)),
|
||||
json: pickBy(json, (_v, key) => !removedKeys.has(key)),
|
||||
binary,
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user