Skip to content

Commit

Permalink
exclude CollectionResource class from #destroy_existing_files
Browse files Browse the repository at this point in the history
  • Loading branch information
ShanaLMoore committed Mar 11, 2024
1 parent 1a007db commit 1afc94f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/factories/bulkrax/object_factory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def run!

def update
raise "Object doesn't exist" unless object
destroy_existing_files if @replace_files && ![Collection, FileSet].include?(klass)
destroy_existing_files if @replace_files && ![Collection, CollectionResource, FileSet].include?(klass)
attrs = transform_attributes(update: true)
run_callbacks :save do
if klass == Collection
Expand Down

0 comments on commit 1afc94f

Please sign in to comment.