Skip to content

Commit

Permalink
sample(001): Fix injectable bug
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunnerLivio committed Mar 17, 2019
1 parent 4b54d8d commit f7b114b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions sample/000-dogs-app/src/health/terminus-options.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ import {
TerminusModuleOptions,
} from '../../../../lib';
import { DogHealthIndicator } from '../dog/dog.health';
import { Inject } from '@nestjs/common';
import { Injectable } from '@nestjs/common';

@Injectable()
export class TerminusOptionsService implements TerminusOptionsFactory {
constructor(
@Inject(DogHealthIndicator)
private readonly dogHealthIndicator: DogHealthIndicator,
) {}
constructor(private readonly dogHealthIndicator: DogHealthIndicator) {}

public createTerminusOptions(): TerminusModuleOptions {
const healthEndpoint: TerminusEndpoint = {
Expand Down

0 comments on commit f7b114b

Please sign in to comment.