Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cauemarcondes committed Oct 15, 2024
1 parent d7c4e65 commit fe7ccdc
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ export class EntitiesSynthtraceKibanaClient {
});
const entityDefinition: EntityDefinitionResponse = await response.json();

const hasServiceEntityDefinition = entityDefinition.definitions.find(
const hasEntityDefinitionsInstalled = entityDefinition.definitions.find(
(definition) => definition.type === 'service'
)?.state.installed;

if (hasServiceEntityDefinition === true) {
this.logger.debug('Service Entity is already defined');
if (hasEntityDefinitionsInstalled === true) {
this.logger.debug('Entity definitions are already defined');
} else {
this.logger.debug('Installing Service Entity definition');
this.logger.debug('Installing Entity definitions');
const entityEnablementUrl = `${this.target}/internal/entities/managed/enablement?installOnly=true`;
await fetch(entityEnablementUrl, {
method: 'PUT',
Expand Down

0 comments on commit fe7ccdc

Please sign in to comment.