otwarchive-sunsetarchive/app/jobs/report_attachment_job.rb

8 lines
285 B
Ruby
Raw Permalink Normal View History

2026-03-17 05:16:49 +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