Skip to content

Commit 8210b85

Browse files
author
Marko Bogdanović
authored
Fix error when updating invalidated run
1 parent e0a7cd2 commit 8210b85

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/controllers/benchmark_runs_controller.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ def create
2323
)
2424

2525
benchmark_run = BenchmarkRun.find_or_initialize_by(
26-
initiator: initiator, benchmark_type: benchmark_type,
26+
initiator: initiator,
27+
benchmark_type: benchmark_type,
2728
benchmark_result_type: benchmark_result_type
2829
)
2930

3031
benchmark_run.update_attributes(benchmark_run_params)
3132
benchmark_run.result = params[:benchmark_run][:result].to_unsafe_h
33+
benchmark_run.validity = true
3234
benchmark_run.save!
3335

3436
$redis.keys("#{BenchmarkRun.charts_cache_key(benchmark_type, benchmark_result_type)}:*").each do |key|

0 commit comments

Comments
 (0)