mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
fix(TheHive 5 Node): Observable encoding in alert > create fix (#7450)
Github issue / Community forum post (link here to close automatically):
This commit is contained in:
@@ -152,8 +152,9 @@ export async function execute(
|
|||||||
|
|
||||||
const binaryPropertyName = value.binaryProperty as string;
|
const binaryPropertyName = value.binaryProperty as string;
|
||||||
const binaryData = this.helpers.assertBinaryData(i, binaryPropertyName);
|
const binaryData = this.helpers.assertBinaryData(i, binaryPropertyName);
|
||||||
|
const dataBuffer = await this.helpers.getBinaryDataBuffer(i, binaryPropertyName);
|
||||||
|
|
||||||
formData.append(attachmentIndex, binaryData.data, {
|
formData.append(attachmentIndex, dataBuffer, {
|
||||||
filename: binaryData.fileName,
|
filename: binaryData.fileName,
|
||||||
contentType: binaryData.mimeType,
|
contentType: binaryData.mimeType,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user