diff --git a/src/consul/consul.ts b/src/consul/consul.ts index 9d16b4f6a..6a9f1a350 100644 --- a/src/consul/consul.ts +++ b/src/consul/consul.ts @@ -10,8 +10,8 @@ import type { IServiceManager } from './../interfaces/IServiceManager.js' import { Environment } from './../utils/Environment.js' export class ConsulService implements IServiceManager { - consul: Consul.Consul - constructor(host: string, port: string) { + consul: Consul + constructor(host: string, port: number) { this.consul = new Consul({ host, port, diff --git a/src/models/Config.d.ts b/src/models/Config.d.ts index 660384c91..e4414d8ac 100644 --- a/src/models/Config.d.ts +++ b/src/models/Config.d.ts @@ -45,7 +45,7 @@ export interface configType { jwt_tenant_property: string consul_enabled: boolean consul_host: string - consul_port: string + consul_port: number consul_key_prefix: string cira_last_seen: boolean }