diff --git a/plugins/wazuh-core/server/plugin.ts b/plugins/wazuh-core/server/plugin.ts index 27228de82d..8b4933a52d 100644 --- a/plugins/wazuh-core/server/plugin.ts +++ b/plugins/wazuh-core/server/plugin.ts @@ -149,7 +149,6 @@ export class WazuhCorePlugin ); await this.services.configuration.start(); - await this.services.manageHosts.start(); // Migrate the configuration file await MigrationConfigFile.start({ @@ -158,6 +157,8 @@ export class WazuhCorePlugin logger: this.logger.get(MigrationConfigFile.name), }); + await this.services.manageHosts.start(); + return { ...this.services, api: {