otwarchive-symphonyarchive/app/jobs/report_attachment_job.rb

8 lines
285 B
Ruby
Raw Normal View History

2026-03-11 22:22:11 +00:00
class ReportAttachmentJob < ApplicationJob
def perform(ticket_id, work)
download = Download.new(work, mime_type: "text/html")
html = DownloadWriter.new(download).generate_html
FeedbackReporter.new.send_attachment!(ticket_id, "#{download.file_name}.html", html)
end
end