Skip to content

Commit 8408c8d

Browse files
author
Marko Bogdanović
authored
Don't invalidate runs which already are invalid
1 parent 4b821ab commit 8408c8d

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)