Remove no longer needed code

This commit is contained in:
Jan Oberhauser 2020-03-30 13:37:04 +02:00
parent 7c5f437e92
commit 8e57009b3b

View file

@ -401,11 +401,6 @@ export class Webhook implements INodeType {
}, },
}; };
const returnData: IDataObject[] = [{ json: {} }];
set(returnData[0], `binary[${binaryPropertyName}]`, {
data: Buffer.concat(data).toString(BINARY_ENCODING),
mimeType: req.headers['content-type'],
});
returnItem.binary![binaryPropertyName as string] = await this.helpers.prepareBinaryData(Buffer.concat(data)); returnItem.binary![binaryPropertyName as string] = await this.helpers.prepareBinaryData(Buffer.concat(data));
return resolve({ return resolve({