Business intelligence made simple
Restructured logic by check type [skip ci]
Andrew Kane3881cb1f649e
diff --git a/app/models/blazer/check.rb b/app/models/blazer/check.rbindex c46ef89b..2c3d5182 100644--- a/app/models/blazer/check.rb+++ b/app/models/blazer/check.rb@@ -36,10 +36,10 @@ module Blazerelse"passing"end- elsif result.rows.any?- check_type == "missing_data" ? "passing" : "failing"- else- check_type == "missing_data" ? "failing" : "passing"+ elsif check_type == "missing_data"+ result.rows.any? ? "passing" : "failing"+ else # bad_data+ result.rows.any? ? "failing" : "passing"endself.last_run_at = Time.now if respond_to?(:last_run_at=)