Skip to content

Commit

Permalink
Merge pull request #799 from odanado/fix-terminus-import
Browse files Browse the repository at this point in the history
docs(terminus): fix bad imports
  • Loading branch information
kamilmysliwiec authored Oct 30, 2019
2 parents 15e177b + 9d51b06 commit 95d0b6f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions content/recipes/terminus.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Let's get started by creating a service which will represent our custom health i
@@filename(dog.health)
import { Injectable } from '@nestjs/common';
import { HealthCheckError } from '@godaddy/terminus';
import { HealthIndicatorResult } from '@nestjs/terminus';
import { HealthIndicator, HealthIndicatorResult } from '@nestjs/terminus';

export interface Dog {
name: string;
Expand Down Expand Up @@ -163,8 +163,8 @@ The next thing we need to do is registering the health indicator as a provider.
@@filename(app.module)
import { Module } from '@nestjs/common';
import { TerminusModule } from '@nestjs/terminus';
import { TerminusOptions } from './terminus-options.service';
import { DogHealthIndicator } from './dog.health.ts';
import { TerminusOptionsService } from './terminus-options.service';
import { DogHealthIndicator } from './dog.health';

@Module({
imports: [
Expand Down Expand Up @@ -192,6 +192,7 @@ import {
TerminusModuleOptions
} from '@nestjs/terminus';
import { Injectable } from '@nestjs/common';
import { DogHealthIndicator } from './dog.health';

@Injectable()
export class TerminusOptionsService implements TerminusOptionsFactory {
Expand All @@ -212,7 +213,7 @@ export class TerminusOptionsService implements TerminusOptionsFactory {
}
}
@@switch
import { DogHealthIndicator } from '../dog/dog.health';
import { DogHealthIndicator } from './dog.health';
import { Injectable, Dependencies } from '@nestjs/common';

@Injectable()
Expand Down

0 comments on commit 95d0b6f

Please sign in to comment.