Sha256: f16ae2739d43576103d0b468ed3e83a47aa3b04bc385faef334a27ef1a38e494

Contents?: true

Size: 288 Bytes

Versions: 2

Compression:

Stored size: 288 Bytes

Contents

module ContentDepositEventJobPrepends
  def action
    super
    if repo_object.deduplication_key
      pre_ingest_work = Zizia::PreIngestWork.find_by(deduplication_key: repo_object.deduplication_key)
      pre_ingest_work.status = 'attached'
      pre_ingest_work.save
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
zizia-6.0.1 config/initializers/content_deposit_event_job_prepends.rb
zizia-6.0.0 config/initializers/content_deposit_event_job_prepends.rb