From 3695fb7182d6791575fc72c8635693279f0e6f68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20T=C3=B6lle?= Date: Tue, 22 Jun 2021 20:43:06 +0200 Subject: [PATCH] refactor(api): replace deprecated DNSHealthCheck --- src/health-check/health-check.controller.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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") ),