diff --git a/plugins/wazuh-core/public/services/state/containers/server-host.ts b/plugins/wazuh-core/public/services/state/containers/server-host.ts index 576111a295..b535e275ff 100644 --- a/plugins/wazuh-core/public/services/state/containers/server-host.ts +++ b/plugins/wazuh-core/public/services/state/containers/server-host.ts @@ -35,7 +35,7 @@ export class ServerHostStateContainer implements StateContainer { return false; } - set(data) { + set(data: any) { try { this.logger.debug(`Setting data: ${data}`); @@ -55,7 +55,7 @@ export class ServerHostStateContainer implements StateContainer { this.logger.debug(`Encoded data was set: ${encodedData}`); } } catch (error) { - this.logger.error(`Error setting data: ${error.message}`); + this.logger.error(`Error setting data: ${(error as Error).message}`); // TODO: implement // const options = { // context: `${AppState.name}.setCurrentAPI`,