From 88bb5b5ec495a5df81a29d2265741fdf9b0982d8 Mon Sep 17 00:00:00 2001 From: JORGE Date: Mon, 16 Dec 2024 14:50:16 -0400 Subject: [PATCH] [TM-1531] add uuid to delayed dto --- .../job-service/src/jobs/dto/delayed-job.dto.ts | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/apps/job-service/src/jobs/dto/delayed-job.dto.ts b/apps/job-service/src/jobs/dto/delayed-job.dto.ts index a5de6a0..6ceca57 100644 --- a/apps/job-service/src/jobs/dto/delayed-job.dto.ts +++ b/apps/job-service/src/jobs/dto/delayed-job.dto.ts @@ -7,6 +7,11 @@ type Status = (typeof STATUSES)[number]; @JsonApiDto({ type: "delayedJobs" }) export class DelayedJobDto extends JsonApiAttributes { + @ApiProperty({ + description: "The unique identifier for the delayed job.", + type: String + }) + uuid: string; @ApiProperty({ description: @@ -28,26 +33,26 @@ export class DelayedJobDto extends JsonApiAttributes { payload: object | null; @ApiProperty({ - description: 'If the job is in progress, this is the total content to process', + description: "If the job is in progress, this is the total content to process", nullable: true }) totalContent: number | null; @ApiProperty({ - description: 'If the job is in progress, this is the total content processed', + description: "If the job is in progress, this is the total content processed", nullable: true }) processedContent: number | null; @ApiProperty({ - description: 'If the job is in progress, this is the progress message', + description: "If the job is in progress, this is the progress message", nullable: true }) - progressMessage: string | null + progressMessage: string | null; @ApiProperty({ - description: 'Indicates whether the jobs have been acknowledged (cleared)', + description: "Indicates whether the jobs have been acknowledged (cleared)", nullable: true }) - isAcknowledged: boolean | null + isAcknowledged: boolean | null; }