mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor: Delete unnecessary interface re-exports from core, and delete unused code in nodes-base (no-changelog) (#6631)
This commit is contained in:
committed by
GitHub
parent
329d22f5d1
commit
e57e85edf7
@@ -1,8 +1,6 @@
|
||||
import type { IExecuteFunctions } from 'n8n-core';
|
||||
import type { IDataObject, INode, INodeExecutionData } from 'n8n-workflow';
|
||||
import type { IDataObject, IExecuteFunctions, INode, INodeExecutionData } from 'n8n-workflow';
|
||||
import { NodeOperationError } from 'n8n-workflow';
|
||||
import type { ExcelResponse, SheetData, UpdateSummary } from './interfaces';
|
||||
import { constructExecutionMetaData } from 'n8n-core';
|
||||
import { wrapData } from '@utils/utilities';
|
||||
|
||||
type PrepareOutputConfig = {
|
||||
@@ -15,6 +13,7 @@ type PrepareOutputConfig = {
|
||||
};
|
||||
|
||||
export function prepareOutput(
|
||||
this: IExecuteFunctions,
|
||||
node: INode,
|
||||
responseData: ExcelResponse,
|
||||
config: PrepareOutputConfig,
|
||||
@@ -54,14 +53,14 @@ export function prepareOutput(
|
||||
for (let columnIndex = 0; columnIndex < columns.length; columnIndex++) {
|
||||
data[columns[columnIndex] as string] = values[rowIndex][columnIndex];
|
||||
}
|
||||
const executionData = constructExecutionMetaData(wrapData({ ...data }), {
|
||||
const executionData = this.helpers.constructExecutionMetaData(wrapData({ ...data }), {
|
||||
itemData: { item: rowIndex },
|
||||
});
|
||||
|
||||
returnData.push(...executionData);
|
||||
}
|
||||
} else {
|
||||
const executionData = constructExecutionMetaData(
|
||||
const executionData = this.helpers.constructExecutionMetaData(
|
||||
wrapData({ [config.dataProperty || 'data']: responseData }),
|
||||
{ itemData: { item: 0 } },
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user