mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 16:42:56 +00:00
feat: update to of elasticsearch 8.4
This commit is contained in:
committed by
Rainer Killinger
parent
515a6eeea5
commit
c9b83b5d71
@@ -16,6 +16,7 @@
|
||||
import {SCConfigFile, SCSearchQuery, SCSearchResponse, SCThings, SCThingType, SCUuid} from '@openstapps/core';
|
||||
import {Express} from 'express';
|
||||
import moment from 'moment';
|
||||
import {getIndexUID} from '../src/storage/elasticsearch/util';
|
||||
import {configureApp} from '../src/app';
|
||||
import express from 'express';
|
||||
import http from 'http';
|
||||
@@ -24,7 +25,6 @@ import {MailQueue} from '../src/notification/mail-queue';
|
||||
import {Bulk, BulkStorage} from '../src/storage/bulk-storage';
|
||||
import getPort from 'get-port';
|
||||
import {Database} from '../src/storage/database';
|
||||
import {Elasticsearch} from '../src/storage/elasticsearch/elasticsearch';
|
||||
import {v4} from 'uuid';
|
||||
|
||||
/**
|
||||
@@ -147,5 +147,4 @@ export const getTransport = (verified: boolean) => {
|
||||
};
|
||||
};
|
||||
|
||||
export const getIndex = (uid?: string) =>
|
||||
`stapps_footype_foosource_${uid ?? Elasticsearch.getIndexUID(v4())}`;
|
||||
export const getIndex = (uid?: string) => `stapps_footype_foosource_${uid ?? getIndexUID(v4())}`;
|
||||
|
||||
Reference in New Issue
Block a user