Skip to content

Commit

Permalink
Merge pull request #432 from braktar/dev
Browse files Browse the repository at this point in the history
Ensure job removal
  • Loading branch information
Gwénaël Rault authored Jul 1, 2022
2 parents 11fc794 + 4ed150b commit a4d76c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

### Fixed

- In some cases, the jobs were impossible to remove [#432](https://github.com/Mapotempo/optimizer-api/pull/432)

## [v1.9.0] - 2022-06-07

### Added
Expand Down
2 changes: 1 addition & 1 deletion api/v01/vrp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ class Vrp < APIBase
}, with: VrpResult)
end
result_object = nil # rubocop:disable Lint/UselessAssignment
OptimizerWrapper.job_remove(params[:api_key], id)
end
OptimizerWrapper.job_remove(params[:api_key], id) if job&.dig('options', 'api_key') == params[:api_key]
end
end
end
Expand Down

0 comments on commit a4d76c0

Please sign in to comment.