From 9728ed69ab44d00c2ef0171bf7628e70f855a9dc Mon Sep 17 00:00:00 2001 From: sbriat Date: Thu, 29 Jun 2023 10:24:42 +0200 Subject: [PATCH] refactor private property in health module --- .../core/usecases/repositories.health-indicator.usecase.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/health/core/usecases/repositories.health-indicator.usecase.ts b/src/modules/health/core/usecases/repositories.health-indicator.usecase.ts index 36e95c1..255263b 100644 --- a/src/modules/health/core/usecases/repositories.health-indicator.usecase.ts +++ b/src/modules/health/core/usecases/repositories.health-indicator.usecase.ts @@ -14,7 +14,7 @@ import { MessagePublisherPort } from '@libs/ports/message-publisher.port'; @Injectable() export class RepositoriesHealthIndicatorUseCase extends HealthIndicator { - private checkRepositories: CheckRepositoryPort[]; + private _checkRepositories: CheckRepositoryPort[]; constructor( @Inject(AD_REPOSITORY) private readonly adRepository: AdRepositoryPort, @@ -22,12 +22,12 @@ export class RepositoriesHealthIndicatorUseCase extends HealthIndicator { private readonly messagePublisher: MessagePublisherPort, ) { super(); - this.checkRepositories = [adRepository]; + this._checkRepositories = [adRepository]; } isHealthy = async (key: string): Promise => { try { await Promise.all( - this.checkRepositories.map( + this._checkRepositories.map( async (checkRepository: CheckRepositoryPort) => { await checkRepository.healthCheck(); },