import { IHealthCheck } from "@nestcloud/feign" ; import { Injectable } from "@nestjs/common" ; import { HealthClient } from "./health.client" ; @ Injectable ( ) export class CustomCheck implements IHealthCheck { constructor ( private readonly client ) { } async check ( ) { await this . client . checkHealth ( ) ; } }