Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[backend] fix workflow_id throw error #6139

Merged
merged 1 commit into from
Feb 27, 2024
Merged

Conversation

jpkha
Copy link
Member

@jpkha jpkha commented Feb 27, 2024

Backend is throwing an error when using Workflow_id filter.

@Kedae Kedae added the filigran team use to identify PR from the Filigran team label Feb 27, 2024
@jpkha jpkha force-pushed the issue/fix-workflow-id-error branch from 5811a3b to a4a608d Compare February 27, 2024 13:19
@jpkha jpkha merged commit 74baf9a into master Feb 27, 2024
4 of 6 checks passed
@jpkha jpkha deleted the issue/fix-workflow-id-error branch February 27, 2024 14:45
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)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be ![WORKFLOW_FILTER, X_OPENCTI_WORKFLOW_ID].includes(arrayKeys[0])
String.includes() can work only for one parameter

Archidoit pushed a commit that referenced this pull request Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
filigran team use to identify PR from the Filigran team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants