mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
chore(lint): switch to eslint
This commit is contained in:
parent
f56548e432
commit
9b96d0fab4
29 changed files with 1609 additions and 113 deletions
|
|
@ -1,11 +1,12 @@
|
|||
import { Controller, Get } from "@nestjs/common";
|
||||
import { ConfigService } from "@nestjs/config";
|
||||
import {
|
||||
DNSHealthIndicator,
|
||||
HealthCheck,
|
||||
HealthCheckResult,
|
||||
HealthCheckService,
|
||||
TypeOrmHealthIndicator,
|
||||
} from "@nestjs/terminus";
|
||||
import { ConfigService } from "@nestjs/config";
|
||||
|
||||
@Controller("api/v1/health")
|
||||
export class HealthCheckController {
|
||||
|
|
@ -18,7 +19,7 @@ export class HealthCheckController {
|
|||
|
||||
@Get()
|
||||
@HealthCheck()
|
||||
check() {
|
||||
check(): Promise<HealthCheckResult> {
|
||||
return this.health.check([
|
||||
() =>
|
||||
this.dns.pingCheck(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue