Skip to content

Commit

Permalink
Replacing the incorrect reference when creating or updating the index…
Browse files Browse the repository at this point in the history
… template.
  • Loading branch information
abhishekbhatia1710 committed Nov 27, 2024
1 parent bb4f35a commit 7eb2053
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class RiskScoreDataClient {
logger: this.options.logger,
esClient,
template: {
name: mappingComponentName,
name: nameSpaceAwareMappingsComponentName(namespace),
_meta: {
managed: true,
},
Expand All @@ -151,7 +151,7 @@ export class RiskScoreDataClient {
body: {
data_stream: { hidden: true },
index_patterns: [indexPatterns.alias],
composed_of: [mappingComponentName],
composed_of: [nameSpaceAwareMappingsComponentName(namespace)],
template: {
lifecycle: {},
settings: {
Expand Down

0 comments on commit 7eb2053

Please sign in to comment.