gitlab-org--gitlab-foss/app/workers/create_evidence_worker.rb

12 lines
234 B
Ruby

# frozen_string_literal: true
class CreateEvidenceWorker
include ApplicationWorker
def perform(release_id)
release = Release.find_by_id(release_id)
return unless release
Evidence.create!(release: release)
end
end