Skip to content

Commit

Permalink
[backend] fix wrong function includes
Browse files Browse the repository at this point in the history
  • Loading branch information
jpkha committed Feb 27, 2024
1 parent a4a608d commit 32ab56d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opencti-platform/opencti-graphql/src/database/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -2106,7 +2106,7 @@ const adaptFilterToWorkflowFilterKey = async (context, user, filter) => {
if (arrayKeys.length > 1) {
throw UnsupportedError(`A filter with these multiple keys is not supported : ${arrayKeys}`);
}
if (!arrayKeys[0].includes(WORKFLOW_FILTER, X_OPENCTI_WORKFLOW_ID)) {
if (![WORKFLOW_FILTER, X_OPENCTI_WORKFLOW_ID].includes(arrayKeys[0])) {
throw UnsupportedError('The key is not correct', { keys: arrayKeys });
}
if (operator === 'nil' || operator === 'not_nil') { // no status template <-> no status // at least a status template <-> at least a status
Expand Down

0 comments on commit 32ab56d

Please sign in to comment.