Skip to content

Commit

Permalink
Explicitly resets validation status in fix script (#955)
Browse files Browse the repository at this point in the history
I had thought this was automatic on save, but not so, and this is what this script
was needed to do, so let's just call it explicitly.

Closes #954
  • Loading branch information
afred authored Jan 27, 2025
1 parent fb55e14 commit b9dbbab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/fix/resave_asset_resources.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def results; @results ||= []; end
def resave_asset_resource(resource:)
result = { resource: resource }
log.info "RESAVING #{resource.class} #{resource.id.id}..."
resource.set_validation_status
Hyrax.persister.save(resource: resource)
Hyrax.index_adapter.save(resource: resource)
log.info "SAVED #{resource.class} #{resource.id.id}."
Expand Down

0 comments on commit b9dbbab

Please sign in to comment.