Commit 1986aa02 authored by Sean McGivern's avatar Sean McGivern

Merge branch '215900-remove-deprecated-params-from-vulnerability-export-workers' into 'master'

Removed deprecated parameters-#215900

Closes #215900

See merge request gitlab-org/gitlab!39545
parents 36aa648d eabeed00
......@@ -8,7 +8,7 @@ module VulnerabilityExports
idempotent!
def perform(_exportable_id = nil, vulnerability_export_id) # rubocop:disable Style/OptionalArguments
def perform(vulnerability_export_id)
vulnerability_export = Vulnerabilities::Export.find_by_id(vulnerability_export_id)
vulnerability_export&.destroy!
end
......
......@@ -16,7 +16,7 @@ module VulnerabilityExports
Vulnerabilities::Export.find_by_id(job['args'].last).failed!
end
def perform(_exportable_id = nil, vulnerability_export_id) # rubocop:disable Style/OptionalArguments
def perform(vulnerability_export_id)
vulnerability_export = Vulnerabilities::Export.find_by_id(vulnerability_export_id)
return unless vulnerability_export
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment