Skip to content

Commit

Permalink
[backend] send entity_type to elUpdateElement
Browse files Browse the repository at this point in the history
  • Loading branch information
labo-flg committed Feb 23, 2024
1 parent 5b4b340 commit 93496ec
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,9 @@ export const stixCoreObjectImportPush = async (context, user, id, file, noTrigge
const eventFile = storeFileConverter(user, up);
const files = [...(previous.x_opencti_files ?? []).filter((f) => f.id !== up.id), eventFile];
await elUpdateElement({
...previous,
_index: previous._index,
internal_id: internalId,
entity_type: previous.entity_type,
updated_at: now(),
x_opencti_files: files
});
Expand Down

0 comments on commit 93496ec

Please sign in to comment.