Skip to content

Commit

Permalink
chore: update service name
Browse files Browse the repository at this point in the history
  • Loading branch information
djabarovgeorge committed Oct 15, 2023
1 parent 804999f commit 88ec98c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export abstract class QueueHealthIndicator
implements IHealthIndicator
{
constructor(
private queueBaseService: QueueBaseService,
private queueService: QueueBaseService,
private indicatorKey: string,
private serviceName: string,
private logContext: string
Expand All @@ -31,7 +31,7 @@ export abstract class QueueHealthIndicator
}

async handleHealthCheck(checkActive = false) {
const isReady = this.queueBaseService.isReady();
const isReady = this.queueService.isReady();

if (!isReady) {
Logger.verbose(`${this.serviceName} is not ready`, this.logContext);
Expand All @@ -48,7 +48,7 @@ export abstract class QueueHealthIndicator
return this.getStatus(this.indicatorKey, true);
}

const isPaused = await this.queueBaseService.isPaused();
const isPaused = await this.queueService.isPaused();
const isActive = isReady && !isPaused;

if (!isActive) {
Expand Down

0 comments on commit 88ec98c

Please sign in to comment.