lib/ddr/actions/fixity_check.rb in ddr-models-2.11.0 vs lib/ddr/actions/fixity_check.rb in ddr-models-3.0.0.alpha.1
- old
+ new
@@ -10,10 +10,10 @@
end
# Return result of fixity check
def self._execute(object)
Result.new(pid: object.pid).tap do |r|
- object.datastreams_having_content.each do |dsid, ds|
+ object.datastreams_to_validate.each do |dsid, ds|
r.success &&= ds.dsChecksumValid
r.results[dsid] = ds.profile
end
end
end