We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2db41c commit 367d722Copy full SHA for 367d722
packages/health-indicator/src/lib/health.indicator.ts
@@ -7,9 +7,17 @@ import { Redis } from './interfaces';
7
8
@Injectable()
9
export class RedisHealthIndicator {
10
- constructor(
11
- private readonly healthIndicatorService: HealthIndicatorService,
12
- ) {}
+ /**
+ * TODO
+ *
13
+ * This is workaround, this should be DI but for some reason
14
+ * HealthIndicatorService is not injected after building the package.
15
16
+ * Reference (how it should be): https://docs.nestjs.com/recipes/terminus#custom-health-indicator
17
18
+ * ToDo: Fix this issue in the future.
19
+ */
20
+ private healthIndicatorService = new HealthIndicatorService();
21
22
async isHealthy(
23
key: string,
0 commit comments