From 7eb7ca09a7bc93817f9d629ae6c536fd7f61a34d Mon Sep 17 00:00:00 2001 From: RonitKissis Date: Mon, 9 Dec 2024 17:17:12 +0200 Subject: [PATCH] fix: set percentage to 0 on new job creation --- src/clients/jobManagerWrapper.ts | 1 + tests/mocks/data.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/clients/jobManagerWrapper.ts b/src/clients/jobManagerWrapper.ts index 9111993..85ea8e5 100644 --- a/src/clients/jobManagerWrapper.ts +++ b/src/clients/jobManagerWrapper.ts @@ -75,6 +75,7 @@ export class JobManagerWrapper extends JobManagerClient { priority: data.priority, description: data.description, status: OperationStatus.IN_PROGRESS, + percentage: 0, additionalIdentifiers: data.relativeDirectoryPath, tasks: [ { diff --git a/tests/mocks/data.ts b/tests/mocks/data.ts index 8a0030d..41e3611 100644 --- a/tests/mocks/data.ts +++ b/tests/mocks/data.ts @@ -884,6 +884,7 @@ const jobPayloadWithMixedForFixedStrategyCheck = { productType: 'OrthophotoHistory', resourceId: 'string', status: 'In-Progress', + percentage: 0, tasks: [ { parameters: {