Skip to content

Commit

Permalink
docs(terminus): fix bad imports
Browse files Browse the repository at this point in the history
  • Loading branch information
odanado committed Oct 30, 2019
1 parent f66ec2e commit 9d51b06
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 9d51b06

Please sign in to comment.