diff --git a/src/health-check/health-check.controller.ts b/src/health-check/health-check.controller.ts index 77501f1..28532e2 100644 --- a/src/health-check/health-check.controller.ts +++ b/src/health-check/health-check.controller.ts @@ -1,7 +1,7 @@ import { Controller, Get } from "@nestjs/common"; import { ConfigService } from "@nestjs/config"; import { - DNSHealthIndicator, + HttpHealthIndicator, HealthCheck, HealthCheckResult, HealthCheckService, @@ -12,7 +12,7 @@ import { export class HealthCheckController { constructor( private readonly health: HealthCheckService, - private readonly dns: DNSHealthIndicator, + private readonly http: HttpHealthIndicator, private readonly typeorm: TypeOrmHealthIndicator, private readonly config: ConfigService ) {} @@ -22,12 +22,12 @@ export class HealthCheckController { check(): Promise { return this.health.check([ () => - this.dns.pingCheck( + this.http.pingCheck( "spotify-web", this.config.get("SPOTIFY_WEB_API_URL") ), () => - this.dns.pingCheck( + this.http.pingCheck( "spotify-auth", this.config.get("SPOTIFY_AUTH_API_URL") ),