Skip to content

Commit

Permalink
fix: @nestjs/microservices as direct dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunnerLivio committed Sep 14, 2023
1 parent 92f5619 commit acfdfb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/health-indicator/microservice/microservice.health.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Injectable, Scope } from '@nestjs/common';
import * as NestJSMicroservices from '@nestjs/microservices';
import type * as NestJSMicroservices from '@nestjs/microservices';
import { HealthIndicator, type HealthIndicatorResult } from '../';
import { TimeoutError } from '../../errors';
import { HealthCheckError } from '../../health-check/health-check.error';
Expand Down Expand Up @@ -124,7 +124,7 @@ export class MicroserviceHealthIndicator extends HealthIndicator {
let isHealthy = false;
const timeout = options.timeout || 1000;

if (options.transport === NestJSMicroservices.Transport.KAFKA) {
if (options.transport === this.nestJsMicroservices.Transport.KAFKA) {
options.options = {
// We need to set the producerOnlyMode to true in order to speed
// up the connection process. https://github.com/nestjs/terminus/issues/1690
Expand Down

0 comments on commit acfdfb3

Please sign in to comment.