2019-12-21 20:55:43 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class CreateEvidenceWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
|
|
|
|
feature_category :release_governance
|
2020-03-09 13:42:32 +05:30
|
|
|
weight 2
|
2019-12-21 20:55:43 +05:30
|
|
|
|
|
|
|
def perform(release_id)
|
|
|
|
release = Release.find_by_id(release_id)
|
|
|
|
return unless release
|
|
|
|
|
|
|
|
Evidence.create!(release: release)
|
|
|
|
end
|
|
|
|
end
|