mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-11 04:03:34 +00:00
committed by
Rainer Killinger
parent
18359fdab3
commit
2259da317a
@@ -24,6 +24,8 @@ 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';
|
||||
|
||||
/**
|
||||
* Adds routers and configures an (express) app
|
||||
@@ -141,4 +143,4 @@ export const getTransport = (verified: boolean) => {
|
||||
}
|
||||
}
|
||||
|
||||
export const index = 'stapps_footype_foosource_foobar';
|
||||
export const getIndex = (uid?: string) => `stapps_footype_foosource_${uid ? uid : Elasticsearch.getIndexUID(v4())}`;
|
||||
|
||||
Reference in New Issue
Block a user