Skip to content

Commit

Permalink
refactor: adjust types for consul
Browse files Browse the repository at this point in the history
  • Loading branch information
rsdmike committed Dec 12, 2024
1 parent b285eb1 commit 98f6f3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/consul/consul.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/models/Config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 98f6f3a

Please sign in to comment.