2019-10-17 11:06:17 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class CreateEvidenceWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
|
2019-10-18 07:11:44 -04:00
|
|
|
feature_category :release_governance
|
|
|
|
|
2019-10-17 11:06:17 -04:00
|
|
|
def perform(release_id)
|
|
|
|
release = Release.find_by_id(release_id)
|
|
|
|
return unless release
|
|
|
|
|
|
|
|
Evidence.create!(release: release)
|
|
|
|
end
|
|
|
|
end
|