mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
11 lines
345 B
Ruby
11 lines
345 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Trips::CalculateAllJob < ApplicationJob
|
|
queue_as :default
|
|
|
|
def perform(trip_id, distance_unit = 'km')
|
|
Trips::CalculatePathJob.perform_later(trip_id)
|
|
Trips::CalculateDistanceJob.perform_later(trip_id, distance_unit)
|
|
Trips::CalculateCountriesJob.perform_later(trip_id, distance_unit)
|
|
end
|
|
end
|