Commit 20e8de0c authored by Mehmet Emin INAC's avatar Mehmet Emin INAC

Do not update already marked records

parent 683e1c9e
......@@ -32,7 +32,9 @@ module Security
def mark_as_resolved(missing_ids)
return if missing_ids.blank?
Vulnerability.id_in(missing_ids).update_all(resolved_on_default_branch: true)
Vulnerability.id_in(missing_ids)
.with_resolution(false)
.update_all(resolved_on_default_branch: true)
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment