From 1afc94faf85b9693d8049f9569b667e76ec7184e Mon Sep 17 00:00:00 2001 From: Shana Moore Date: Mon, 11 Mar 2024 07:49:25 -0700 Subject: [PATCH] exclude CollectionResource class from #destroy_existing_files --- app/factories/bulkrax/object_factory.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/factories/bulkrax/object_factory.rb b/app/factories/bulkrax/object_factory.rb index f7588de5..65705fca 100644 --- a/app/factories/bulkrax/object_factory.rb +++ b/app/factories/bulkrax/object_factory.rb @@ -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