mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(core): Deprecate prepareOutputData (no-changelog) (#7091)
This commit is contained in:
committed by
GitHub
parent
c04a996fb4
commit
6aa7b93473
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user