push
github
2100 of 3363 branches covered (62.44%)
282 of 757 new or added lines in 74 files covered. (37.25%)
14879 existing lines in 182 files now uncovered.25574 of 98035 relevant lines covered (26.09%)
5.17 hits per line
UNCOV
1
|
import { Controller, Get } from '@nestjs/common'; |
|
UNCOV
2
|
import { HealthCheck, HealthCheckService, PrismaHealthIndicator } from '@nestjs/terminus'; |
× |
UNCOV
3
|
import { PrismaService } from '@teable/db-main-prisma'; |
× |
UNCOV
4
|
import { Public } from '../auth/decorators/public.decorator'; |
× |
UNCOV
5
|
|
× |
UNCOV
6
|
@Controller('health') |
× |
UNCOV
7
|
@Public()
|
× |
UNCOV
8
|
export class HealthController { |
× |
UNCOV
9
|
constructor( |
× |
UNCOV
10
|
private readonly health: HealthCheckService,
|
× |
UNCOV
11
|
private readonly db: PrismaHealthIndicator,
|
× |
UNCOV
12
|
private readonly prismaService: PrismaService
|
× |
UNCOV
13
|
) {} |
× |
UNCOV
14
|
|
× |
UNCOV
15
|
@Get()
|
× |
UNCOV
16
|
@HealthCheck()
|
× |
UNCOV
17
|
check() { |
× |
18 |
return this.health.check([() => this.db.pingCheck('database', this.prismaService)]); |
× |
19 |
} |
× |
UNCOV
20
|
} |
× |