From 0afa746c42ae10e5956b2ddaea536170df089561 Mon Sep 17 00:00:00 2001 From: Souad Hadjiat Date: Tue, 27 Feb 2024 16:25:32 +0100 Subject: [PATCH] [backend] exclude decay inputs from stream --- opencti-platform/opencti-graphql/src/database/middleware.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opencti-platform/opencti-graphql/src/database/middleware.js b/opencti-platform/opencti-graphql/src/database/middleware.js index 2910ecf8852e3..04763ef5b7c7d 100644 --- a/opencti-platform/opencti-graphql/src/database/middleware.js +++ b/opencti-platform/opencti-graphql/src/database/middleware.js @@ -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