From fec265a879b1a770ee46c973f89e9c5faed5a114 Mon Sep 17 00:00:00 2001 From: Yash Maheshwari Date: Tue, 7 Nov 2023 19:28:19 +0530 Subject: [PATCH 1/2] Fixed: case to empty the runTime epoch when updating a job or skipping a job --- src/store/modules/job/actions.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/store/modules/job/actions.ts b/src/store/modules/job/actions.ts index 643b8604..b0924472 100644 --- a/src/store/modules/job/actions.ts +++ b/src/store/modules/job/actions.ts @@ -513,7 +513,8 @@ const actions: ActionTree = { 'systemJobEnumId': job.systemJobEnumId, 'recurrenceTimeZone': this.state.user.current.userTimeZone, 'tempExprId': job.jobStatus, - 'statusId': "SERVICE_PENDING" + 'statusId': "SERVICE_PENDING", + 'runTimeEpoch': '' } as any job?.runTime && (payload['runTime'] = job.runTime) @@ -650,7 +651,8 @@ const actions: ActionTree = { 'runTime': updatedRunTime, 'systemJobEnumId': job.systemJobEnumId, 'recurrenceTimeZone': this.state.user.current.userTimeZone, - 'statusId': "SERVICE_PENDING" + 'statusId': "SERVICE_PENDING", + 'runTimeEpoch': '' } as any const resp = await JobService.updateJob(payload) From 812eefcb70a0a2d542baef78646781859a1631e5 Mon Sep 17 00:00:00 2001 From: Yash Maheshwari Date: Wed, 8 Nov 2023 09:42:25 +0530 Subject: [PATCH 2/2] Improved: code to add a comment for clearing epoch time --- src/store/modules/job/actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/job/actions.ts b/src/store/modules/job/actions.ts index b0924472..f912d289 100644 --- a/src/store/modules/job/actions.ts +++ b/src/store/modules/job/actions.ts @@ -514,7 +514,7 @@ const actions: ActionTree = { 'recurrenceTimeZone': this.state.user.current.userTimeZone, 'tempExprId': job.jobStatus, 'statusId': "SERVICE_PENDING", - 'runTimeEpoch': '' + 'runTimeEpoch': '' // when updating a job clearning the epoch time, as job honors epoch time as runTime and the new job created also uses epoch time as runTime } as any job?.runTime && (payload['runTime'] = job.runTime)