Commit 9dfc8b3a authored by Sean Arnold's avatar Sean Arnold

Use find_each for iteration

parent 5f62b91f
......@@ -14,7 +14,7 @@ module EE
private
def copy_metric_images_to(issue)
alert.metric_images.each do |img|
alert.metric_images.find_each do |img|
::IncidentManagement::Incidents::UploadMetricService
.new(issue, user, { file: img.file, url: img.url, url_text: img.url_text })
.execute
......
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