1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-28 09:33:27 +02:00

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
No known key found for this signature in database
GPG Key ID: E4954BC787B85C8A
4 changed files with 6 additions and 1 deletions

Binary file not shown.

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