Added explicit type for job count

This commit is contained in:
Alex Tran
2022-10-06 12:43:02 -05:00
parent 46994c3355
commit 471a60dcb0
4 changed files with 21 additions and 26 deletions

View File

@@ -1,10 +1,15 @@
import { ApiProperty } from '@nestjs/swagger';
export class JobCounts {
@ApiProperty({ type: 'integer' })
active!: number;
@ApiProperty({ type: 'integer' })
completed!: number;
@ApiProperty({ type: 'integer' })
failed!: number;
@ApiProperty({ type: 'integer' })
delayed!: number;
@ApiProperty({ type: 'integer' })
waiting!: number;
}
export class AllJobStatusResponseDto {

File diff suppressed because one or more lines are too long