15 lines
350 B
Ruby
15 lines
350 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreateEvidenceWorker # rubocop:disable Scalability/IdempotentWorker
|
|
include ApplicationWorker
|
|
|
|
feature_category :release_evidence
|
|
weight 2
|
|
|
|
def perform(release_id)
|
|
release = Release.find_by_id(release_id)
|
|
return unless release
|
|
|
|
::Releases::CreateEvidenceService.new(release).execute
|
|
end
|
|
end
|