Skip to content

Commit

Permalink
[backend] exclude decay inputs from stream
Browse files Browse the repository at this point in the history
  • Loading branch information
SouadHadjiat committed Feb 27, 2024
1 parent 6f96a70 commit 0afa746
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1633,7 +1633,7 @@ const updateAttributeRaw = async (context, user, instance, inputs, opts = {}) =>
if (ins) { // If update will really produce a data change
impactedInputs.push(ins);
// region Compute the update to push in the stream
if (!input.key.startsWith('i_') && input.key !== 'x_opencti_graph_data') {
if (!input.key.startsWith('i_') && input.key !== 'x_opencti_graph_data' && !input.key.startsWith('decay_')) {
const previous = getPreviousInstanceValue(input.key, instance);
if (input.operation === UPDATE_OPERATION_ADD || input.operation === UPDATE_OPERATION_REMOVE) {
// Check symmetric difference for add and remove
Expand Down

0 comments on commit 0afa746

Please sign in to comment.