diff options
Diffstat (limited to 'app/workers/create_evidence_worker.rb')
-rw-r--r-- | app/workers/create_evidence_worker.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/workers/create_evidence_worker.rb b/app/workers/create_evidence_worker.rb new file mode 100644 index 00000000000..027dbd2f101 --- /dev/null +++ b/app/workers/create_evidence_worker.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +class CreateEvidenceWorker + include ApplicationWorker + + feature_category :release_governance + + def perform(release_id) + release = Release.find_by_id(release_id) + return unless release + + Evidence.create!(release: release) + end +end |