diff --git a/lib/importer/attach_files.rb b/lib/importer/attach_files.rb index b50fbbb59..079004eb6 100644 --- a/lib/importer/attach_files.rb +++ b/lib/importer/attach_files.rb @@ -29,7 +29,7 @@ def create_file(file_name) return end - actor = CurationConcerns::Actors::FileSetActor.new(FileSet.new, User.batchuser) + actor = CurationConcerns::Actors::FileSetActor.new(FileSet.new, User.batch_user) actor.create_metadata(work) actor.create_content(File.new(path)) end diff --git a/lib/importer/factory/object_factory.rb b/lib/importer/factory/object_factory.rb index f5d68d705..47ed13700 100644 --- a/lib/importer/factory/object_factory.rb +++ b/lib/importer/factory/object_factory.rb @@ -90,10 +90,10 @@ def create run_callbacks :create do if klass == Collection @object.attributes = attrs - @object.apply_depositor_metadata(User.batchuser) + @object.apply_depositor_metadata(User.batch_user) @object.save! else - work_actor = CurationConcerns::CurationConcern.actor(@object, User.batchuser) + work_actor = CurationConcerns::CurationConcern.actor(@object, User.batch_user) work_actor.create(attrs) end end