lib/tasks/embargo_lease.rake in hyrax-5.0.0.rc1 vs lib/tasks/embargo_lease.rake in hyrax-5.0.0.rc2
- old
+ new
@@ -6,9 +6,10 @@
task deactivate_expired: :environment do
ids = Hyrax::EmbargoService.assets_with_expired_embargoes.map(&:id)
Hyrax.query_service.find_many_by_ids(ids: ids).each do |resource|
Hyrax::EmbargoManager.release_embargo_for(resource: resource) &&
+ Hyrax.persister.save(resource: resource.embargo) &&
Hyrax::AccessControlList(resource).save
end
end
end