Skip to content

Commit

Permalink
Fix broken DelayRun change time methods (#1048)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShockwaveNN authored Jun 11, 2021
1 parent ba3bf1c commit 80ef7f0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## master (unreleased)

### Fixes

* Fix broken `DelayRun` change time methods

## 1.24.0 (2021-06-08)

### New Features
Expand Down
13 changes: 13 additions & 0 deletions app/workers/delayed_run_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,17 @@ def add_run_in_db(props, client)
init_runs_from_db
run
end

# Update DelayRun properties
# @param [ActionController::Parameters] props to update
# @return [Boolean] is update successful
def update(props)
run = DelayedRun.find(props['id'])
run.method = props['method']
run.location = props['location']
run.start_time = props['start_time']
run.next_start = props['start_time']
init_runs_from_db
run.save
end
end

0 comments on commit 80ef7f0

Please sign in to comment.