mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
12 lines
233 B
Ruby
12 lines
233 B
Ruby
|
|
# 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
|