Skip to content

Commit

Permalink
fix(prisma): add @Injectable decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunnerLivio committed Jun 17, 2023
1 parent 1978022 commit 25893bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/health-indicator/database/prisma.health.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
import { HealthIndicator } from '../health-indicator';
import { TimeoutError } from '../../errors';
import { HealthCheckError } from '../../health-check';
import { Injectable } from '@nestjs/common';

type PingCommandSignature = { [Key in string]?: number };

Expand Down Expand Up @@ -32,6 +33,7 @@ export interface PrismaClientPingCheckSettings {
* @publicApi
* @module TerminusModule
*/
@Injectable()
export class PrismaHealthIndicator extends HealthIndicator {
constructor() {
super();
Expand Down

0 comments on commit 25893bd

Please sign in to comment.