Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed: 'now' option for run time not working (#517) #522

Merged
merged 3 commits into from
Jun 16, 2023
Merged

Fixed: 'now' option for run time not working (#517) #522

merged 3 commits into from
Jun 16, 2023

Conversation

alsoK2maan
Copy link
Contributor

@alsoK2maan alsoK2maan commented Jun 13, 2023

Related Issues

Closes #517

Short Description and Why It's Useful

Screenshots of Visual Changes before/after (If There Are Any)

IMPORTANT NOTICE - Remember to add changelog entry

Contribution and Currently Important Rules Acceptance

@alsoK2maan alsoK2maan changed the title Fixed: now option as run time not working (#517) Fixed: 'now' option for run time not working (#517) Jun 13, 2023
@@ -216,7 +216,7 @@ export default defineComponent({

// Handling the case for 'Now'. Sending the now value will fail the API as by the time
// the job is ran, the given 'now' time would have passed. Hence, passing empty 'run time'
!isCustomRunTime(this.runTime) && this.runTime == 0 ? job.runTime = '' : job.runTime += DateTime.now().toMillis()
!isCustomRunTime(this.runTime) ? job.runTime = DateTime.now().toMillis() + this.runTime : job.runTime = this.runTime
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
!isCustomRunTime(this.runTime) ? job.runTime = DateTime.now().toMillis() + this.runTime : job.runTime = this.runTime
job.runTime = !isCustomRunTime(this.runTime) ? DateTime.now().toMillis() + this.runTime : this.runTime

@adityasharma7 adityasharma7 merged commit 8e217ae into hotwax:main Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

While updating a job, selecting 'Now' for the runtime does not work
3 participants