mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2025-12-18 04:06:19 +00:00
refactor: move template/aggregation generation
This commit is contained in:
committed by
Rainer Killinger
parent
b629d058eb
commit
c2728b2a1d
@@ -205,6 +205,9 @@ export class Elasticsearch implements Database {
|
||||
this.aliasMap = {};
|
||||
this.ready = false;
|
||||
|
||||
checkESTemplate(typeof process.env.ES_FORCE_MAPPING_UPDATE !== 'undefined' ?
|
||||
process.env.ES_FORCE_MAPPING_UPDATE === 'true' : false);
|
||||
|
||||
this.aggregationsSchema = buildAggregations();
|
||||
|
||||
this.mailQueue = mailQueue;
|
||||
@@ -484,9 +487,6 @@ export class Elasticsearch implements Database {
|
||||
Monitoring.setUp(monitoringConfiguration, this.client, this.mailQueue);
|
||||
}
|
||||
|
||||
checkESTemplate(typeof process.env.ES_FORCE_MAPPING_UPDATE !== 'undefined' ?
|
||||
process.env.ES_FORCE_MAPPING_UPDATE === 'true' : false);
|
||||
|
||||
return this.getAliasMap();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user