fix(TheHive 5 Node): The Hive - Custom fields are no longer working (#8780)

This commit is contained in:
Michael Kret 2024-03-01 11:42:07 +02:00 committed by GitHub
parent 7d82dc1ea8
commit 961d6b9266
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -100,7 +100,7 @@ export async function execute(
} }
if (fieldsToMatchOn.includes('id')) { if (fieldsToMatchOn.includes('id')) {
await theHiveApiRequest.call(this, 'PATCH', `/v1/alert/${id}`, body); await theHiveApiRequest.call(this, 'PATCH', `/v1/alert/${id}`, updateBody);
} else { } else {
const filter = { const filter = {
_name: 'filter', _name: 'filter',

View file

@ -96,7 +96,7 @@ export async function execute(
} }
if (fieldsToMatchOn.includes('id')) { if (fieldsToMatchOn.includes('id')) {
await theHiveApiRequest.call(this, 'PATCH', `/v1/case/${id}`, body); await theHiveApiRequest.call(this, 'PATCH', `/v1/case/${id}`, updateBody);
} else { } else {
const filter = { const filter = {
_name: 'filter', _name: 'filter',