Skip to content

Commit

Permalink
[backend] Fix parse_exception: request body is required during Retent…
Browse files Browse the repository at this point in the history
…ion Policy (#6552)
  • Loading branch information
SouadHadjiat committed Apr 23, 2024
1 parent e8ca0e1 commit 3396f5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion opencti-platform/opencti-graphql/src/database/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -3162,7 +3162,9 @@ const elRemoveRelationConnection = async (context, user, elementsImpact) => {
});
});
const bodyUpdate = R.flatten(bodyUpdateRaw);
await elBulk({ refresh: true, timeout: BULK_TIMEOUT, body: bodyUpdate });
if (bodyUpdate.length > 0) {
await elBulk({ refresh: true, timeout: BULK_TIMEOUT, body: bodyUpdate });
}
}
}
};
Expand Down

0 comments on commit 3396f5d

Please sign in to comment.