fix(Webhook Node): Fix handling of form-data files (#8256)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-01-08 14:33:14 +01:00
committed by GitHub
parent b6c42cc084
commit fc2903096e
2 changed files with 39 additions and 3 deletions

View File

@@ -99,7 +99,7 @@ export class Webhook extends Node {
const options = context.getNodeParameter('options', {}) as {
binaryData: boolean;
ignoreBots: boolean;
rawBody: Buffer;
rawBody: boolean;
responseData?: string;
};
const req = context.getRequestObject();
@@ -225,7 +225,7 @@ export class Webhook extends Node {
},
};
if (files?.length) {
if (files && Object.keys(files).length) {
returnItem.binary = {};
}