refactor(core): Deprecate prepareOutputData (no-changelog) (#7091)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-09-05 12:59:02 +02:00
committed by GitHub
parent c04a996fb4
commit 6aa7b93473
241 changed files with 331 additions and 379 deletions

View File

@@ -393,7 +393,7 @@ export class SpreadsheetFile implements INodeType {
}
}
return this.prepareOutputData(newItems);
return [newItems];
} else if (operation === 'toFile') {
try {
// Write the workflow data to spreadsheet file
@@ -482,9 +482,7 @@ export class SpreadsheetFile implements INodeType {
}
} else {
if (this.continueOnFail()) {
return this.prepareOutputData([
{ json: { error: `The operation "${operation}" is not supported!` } },
]);
return [[{ json: { error: `The operation "${operation}" is not supported!` } }]];
} else {
throw new NodeOperationError(
this.getNode(),
@@ -492,6 +490,6 @@ export class SpreadsheetFile implements INodeType {
);
}
}
return this.prepareOutputData(newItems);
return [newItems];
}
}