Skip to content

Commit

Permalink
self review
Browse files Browse the repository at this point in the history
  • Loading branch information
ofiriro3 committed Jan 15, 2023
1 parent 29a3ca8 commit 3ca5bae
Showing 1 changed file with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,14 @@ export const showErrorToast = (
else toasts.addDanger(extractErrorMessage(error, SEARCH_FAILED_TEXT));
};

export const getFindingsQuery = ({ query, sort }: UseFindingsOptions) => {
return {
index: CSP_LATEST_FINDINGS_DATA_VIEW,
query,
sort: getSortField(sort),
size: MAX_FINDINGS_TO_LOAD,
aggs: getFindingsCountAggQuery(),
ignore_unavailable: false,
};
};
export const getFindingsQuery = ({ query, sort }: UseFindingsOptions) => ({
index: CSP_LATEST_FINDINGS_DATA_VIEW,
query,
sort: getSortField(sort),
size: MAX_FINDINGS_TO_LOAD,
aggs: getFindingsCountAggQuery(),
ignore_unavailable: false,
});

/**
* By default, ES will sort keyword fields in case-sensitive format, the
Expand Down

0 comments on commit 3ca5bae

Please sign in to comment.