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

@@ -416,7 +416,7 @@ export class RabbitMQ implements INodeType {
const operation = this.getNodeParameter('operation', 0);
if (operation === 'deleteMessage') {
this.sendResponse(items[0].json);
return await this.prepareOutputData(items);
return [items];
}
const mode = (this.getNodeParameter('mode', 0) as string) || 'queue';
const returnItems: INodeExecutionData[] = [];
@@ -556,7 +556,7 @@ export class RabbitMQ implements INodeType {
throw new NodeOperationError(this.getNode(), `The operation "${mode}" is not known!`);
}
return await this.prepareOutputData(returnItems);
return [returnItems];
} catch (error) {
if (channel) {
await channel.close();