Skip to content

Commit

Permalink
Merge pull request #636 from ymaheshwari1/fix/updateJob
Browse files Browse the repository at this point in the history
Fixed: case to empty the runTime epoch when updating a job or skipping a job
  • Loading branch information
ravilodhi authored Nov 8, 2023
2 parents f202919 + 812eefc commit dc7c2ca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/store/modules/job/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,8 @@ const actions: ActionTree<JobState, RootState> = {
'systemJobEnumId': job.systemJobEnumId,
'recurrenceTimeZone': this.state.user.current.userTimeZone,
'tempExprId': job.jobStatus,
'statusId': "SERVICE_PENDING"
'statusId': "SERVICE_PENDING",
'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)
Expand Down Expand Up @@ -650,7 +651,8 @@ const actions: ActionTree<JobState, RootState> = {
'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)
Expand Down

0 comments on commit dc7c2ca

Please sign in to comment.