diff --git a/opencti-platform/opencti-front/src/private/components/search/SearchIndexedFiles.tsx b/opencti-platform/opencti-front/src/private/components/search/SearchIndexedFiles.tsx index 466abaec15564..eff78e77113b9 100644 --- a/opencti-platform/opencti-front/src/private/components/search/SearchIndexedFiles.tsx +++ b/opencti-platform/opencti-front/src/private/components/search/SearchIndexedFiles.tsx @@ -13,9 +13,11 @@ import ListLines from '../../../components/list_lines/ListLines'; import ExportContextProvider from '../../../utils/ExportContextProvider'; // TODO : filters keys + redirectionMode + Datacolumns - +interface SearchIndexedFilesProps { + search: string; +} const LOCAL_STORAGE_KEY = 'view-files'; -const SearchIndexedFiles : FunctionComponent = ({ search }) => { +const SearchIndexedFiles : FunctionComponent = ({ search }) => { const { platformModuleHelpers: { isRuntimeFieldEnable }, } = useAuth(); diff --git a/opencti-platform/opencti-graphql/src/database/engine.js b/opencti-platform/opencti-graphql/src/database/engine.js index 52fe0ae5f50d7..982f2dc6f32a2 100644 --- a/opencti-platform/opencti-graphql/src/database/engine.js +++ b/opencti-platform/opencti-graphql/src/database/engine.js @@ -2008,7 +2008,7 @@ const buildFilesSearchResult = (data, first, searchAfter, connectionFormat = tru return convertedHits; }; export const elSearchFiles = async (context, user, options = {}) => { - const { first = 20, after, orderBy = null, orderMode = 'asc' } = options; // pagination options + const { first = 20, after, orderBy = null } = options; // pagination options // TODO orderMode = 'asc' const { search = null, fileIds = [] } = options; // search options const { fields = [], connectionFormat = true } = options; // return format options const searchAfter = after ? cursorToOffset(after) : undefined; diff --git a/opencti-platform/opencti-graphql/src/manager/fileIndexManager.ts b/opencti-platform/opencti-graphql/src/manager/fileIndexManager.ts index cdc4990226480..cebe7b0cb7832 100644 --- a/opencti-platform/opencti-graphql/src/manager/fileIndexManager.ts +++ b/opencti-platform/opencti-graphql/src/manager/fileIndexManager.ts @@ -76,7 +76,7 @@ const indexImportedFiles = async ( const initFileIndexManager = () => { let scheduler: SetIntervalAsyncTimer<[]>; - let streamProcessor: StreamProcessor; + // let streamProcessor: StreamProcessor; let running = false; const context = executionContext('file_index_manager'); const fileIndexHandler = async () => { @@ -97,7 +97,7 @@ const initFileIndexManager = () => { logApp.info('[OPENCTI-MODULE] End of file index manager processing'); } finally { running = false; - if (streamProcessor) await streamProcessor.shutdown(); + // if (streamProcessor) await streamProcessor.shutdown(); if (lock) await lock.unlock(); } }