Skip to content

Commit 8dc24aa

Browse files
authored
[backend] Misuse function for workflow_id (#6143)
1 parent 72ae792 commit 8dc24aa

File tree

1 file changed

+1
-1
lines changed
  • opencti-platform/opencti-graphql/src/database

1 file changed

+1
-1
lines changed

opencti-platform/opencti-graphql/src/database/engine.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2106,7 +2106,7 @@ const adaptFilterToWorkflowFilterKey = async (context, user, filter) => {
21062106
if (arrayKeys.length > 1) {
21072107
throw UnsupportedError(`A filter with these multiple keys is not supported : ${arrayKeys}`);
21082108
}
2109-
if (!arrayKeys[0].includes(WORKFLOW_FILTER, X_OPENCTI_WORKFLOW_ID)) {
2109+
if (![WORKFLOW_FILTER, X_OPENCTI_WORKFLOW_ID].includes(arrayKeys[0])) {
21102110
throw UnsupportedError('The key is not correct', { keys: arrayKeys });
21112111
}
21122112
if (operator === 'nil' || operator === 'not_nil') { // no status template <-> no status // at least a status template <-> at least a status

0 commit comments

Comments
 (0)