Skip to content

Commit de2ecd6

Browse files
author
Marko Bogdanović
authored
Merge pull request #253 from ruby-bench/fix
Don't invalidate runs which already are invalid
2 parents 4b821ab + 8408c8d commit de2ecd6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/models/benchmark_type.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def comparison_benchmark_types
3030

3131
def check_benchmark_runs_validity
3232
if self.digest_was && self.digest_changed?
33-
self.benchmark_runs.update_all(validity: false)
33+
self.benchmark_runs.where(validity: true).update_all(validity: false)
3434
end
3535
end
3636
end

0 commit comments

Comments
 (0)