mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat: Do not assign all paired items (no-changelog) (#11716)
This commit is contained in:
@@ -21,7 +21,7 @@ import {
|
||||
} from 'n8n-workflow';
|
||||
import type { Readable } from 'stream';
|
||||
|
||||
import { formatPrivateKey, generatePairedItemData } from '../../utils/utilities';
|
||||
import { formatPrivateKey } from '../../utils/utilities';
|
||||
|
||||
export class RespondToWebhook implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
@@ -443,11 +443,7 @@ export class RespondToWebhook implements INodeType {
|
||||
this.sendResponse(response);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
const itemData = generatePairedItemData(items.length);
|
||||
const returnData = this.helpers.constructExecutionMetaData(
|
||||
[{ json: { error: error.message } }],
|
||||
{ itemData },
|
||||
);
|
||||
const returnData = [{ json: { error: error.message } }];
|
||||
return [returnData];
|
||||
}
|
||||
|
||||
|
||||
@@ -253,7 +253,6 @@ describe('RespondToWebhook Node', () => {
|
||||
[
|
||||
{
|
||||
json: { error: 'The Response Data option "notSupportedRespondWith" is not supported!' },
|
||||
pairedItem: [{ item: 0 }],
|
||||
},
|
||||
],
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user