From a2d2e3dda798d166cfc2a49b0c4f0eb164a666dc Mon Sep 17 00:00:00 2001 From: Michael Kret <88898367+michael-radency@users.noreply.github.com> Date: Tue, 17 Oct 2023 16:53:44 +0300 Subject: [PATCH] fix(TheHive 5 Node): Observable encoding in alert > create fix (#7450) Github issue / Community forum post (link here to close automatically): --- .../nodes/TheHiveProject/actions/alert/create.operation.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/nodes-base/nodes/TheHiveProject/actions/alert/create.operation.ts b/packages/nodes-base/nodes/TheHiveProject/actions/alert/create.operation.ts index 911ebf26b3..a57a4ef102 100644 --- a/packages/nodes-base/nodes/TheHiveProject/actions/alert/create.operation.ts +++ b/packages/nodes-base/nodes/TheHiveProject/actions/alert/create.operation.ts @@ -152,8 +152,9 @@ export async function execute( const binaryPropertyName = value.binaryProperty as string; 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, contentType: binaryData.mimeType, });