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:
Michael Kret 2023-10-17 16:53:44 +03:00 committed by GitHub
parent 3ddc176dfa
commit a2d2e3dda7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
});