From 19654bfcb01e4b2b16fe6bb76aede959b4d014a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20David=20Guti=C3=A9rrez?= Date: Wed, 6 Mar 2024 17:05:59 +0100 Subject: [PATCH] fix: move initiation of manageHost service --- plugins/wazuh-core/server/plugin.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: {