Skip to content

Commit

Permalink
[backend/frontend] cleanup and fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
SouadHadjiat committed Sep 22, 2023
1 parent b96a342 commit eed6afc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<SearchIndexedFilesProps> = ({ search }) => {
const {
platformModuleHelpers: { isRuntimeFieldEnable },
} = useAuth();
Expand Down
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 @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand All @@ -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();
}
}
Expand Down

0 comments on commit eed6afc

Please sign in to comment.