mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Deprecate prepareOutputData (no-changelog) (#7091)
This commit is contained in:
committed by
GitHub
parent
c04a996fb4
commit
6aa7b93473
@@ -15,7 +15,6 @@ import type {
|
||||
IContextObject,
|
||||
INode,
|
||||
INodeCredentialDescription,
|
||||
INodeExecutionData,
|
||||
INodeIssueObjectProperty,
|
||||
INodeIssues,
|
||||
INodeParameterResourceLocator,
|
||||
@@ -847,27 +846,6 @@ export function getNodeParameters(
|
||||
return nodeParameters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Brings the output data in a format that can be returned from a node
|
||||
*
|
||||
* @param {number} [outputIndex=0]
|
||||
*/
|
||||
export async function prepareOutputData(
|
||||
outputData: INodeExecutionData[],
|
||||
outputIndex = 0,
|
||||
): Promise<INodeExecutionData[][]> {
|
||||
// TODO: Check if node has output with that index
|
||||
const returnData = [];
|
||||
|
||||
for (let i = 0; i < outputIndex; i++) {
|
||||
returnData.push([]);
|
||||
}
|
||||
|
||||
returnData.push(outputData);
|
||||
|
||||
return returnData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all the webhooks which should be created for the give node
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user