dawarich/app/jobs/export_job.rb

12 lines
233 B
Ruby
Raw Normal View History

2024-06-12 14:29:38 -04:00
# frozen_string_literal: true
class ExportJob < ApplicationJob
queue_as :exports
def perform(export_id, start_at, end_at)
export = Export.find(export_id)
Exports::Create.new(export:, start_at:, end_at:).call
end
end