mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-03 12:02:53 +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.aliasMap = {};
|
||||||
this.ready = false;
|
this.ready = false;
|
||||||
|
|
||||||
|
checkESTemplate(typeof process.env.ES_FORCE_MAPPING_UPDATE !== 'undefined' ?
|
||||||
|
process.env.ES_FORCE_MAPPING_UPDATE === 'true' : false);
|
||||||
|
|
||||||
this.aggregationsSchema = buildAggregations();
|
this.aggregationsSchema = buildAggregations();
|
||||||
|
|
||||||
this.mailQueue = mailQueue;
|
this.mailQueue = mailQueue;
|
||||||
@@ -484,9 +487,6 @@ export class Elasticsearch implements Database {
|
|||||||
Monitoring.setUp(monitoringConfiguration, this.client, this.mailQueue);
|
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();
|
return this.getAliasMap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user