From 961d6b9266344e221e21a771546b49c0c13ea80c Mon Sep 17 00:00:00 2001 From: Michael Kret <88898367+michael-radency@users.noreply.github.com> Date: Fri, 1 Mar 2024 11:42:07 +0200 Subject: [PATCH] fix(TheHive 5 Node): The Hive - Custom fields are no longer working (#8780) --- .../nodes/TheHiveProject/actions/alert/update.operation.ts | 2 +- .../nodes/TheHiveProject/actions/case/update.operation.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nodes-base/nodes/TheHiveProject/actions/alert/update.operation.ts b/packages/nodes-base/nodes/TheHiveProject/actions/alert/update.operation.ts index b5ede4590b..aaf0b398ed 100644 --- a/packages/nodes-base/nodes/TheHiveProject/actions/alert/update.operation.ts +++ b/packages/nodes-base/nodes/TheHiveProject/actions/alert/update.operation.ts @@ -100,7 +100,7 @@ export async function execute( } if (fieldsToMatchOn.includes('id')) { - await theHiveApiRequest.call(this, 'PATCH', `/v1/alert/${id}`, body); + await theHiveApiRequest.call(this, 'PATCH', `/v1/alert/${id}`, updateBody); } else { const filter = { _name: 'filter', diff --git a/packages/nodes-base/nodes/TheHiveProject/actions/case/update.operation.ts b/packages/nodes-base/nodes/TheHiveProject/actions/case/update.operation.ts index a88ecc4714..4b3539bc2e 100644 --- a/packages/nodes-base/nodes/TheHiveProject/actions/case/update.operation.ts +++ b/packages/nodes-base/nodes/TheHiveProject/actions/case/update.operation.ts @@ -96,7 +96,7 @@ export async function execute( } if (fieldsToMatchOn.includes('id')) { - await theHiveApiRequest.call(this, 'PATCH', `/v1/case/${id}`, body); + await theHiveApiRequest.call(this, 'PATCH', `/v1/case/${id}`, updateBody); } else { const filter = { _name: 'filter',