mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
12 lines
293 B
Ruby
12 lines
293 B
Ruby
|
|
# frozen_string_literal: true
|
||
|
|
|
||
|
|
class Trips::CalculateAllJob < ApplicationJob
|
||
|
|
queue_as :default
|
||
|
|
|
||
|
|
def perform(trip_id)
|
||
|
|
Trips::CalculatePathJob.perform_later(trip_id)
|
||
|
|
Trips::CalculateDistanceJob.perform_later(trip_id)
|
||
|
|
Trips::CalculateCountriesJob.perform_later(trip_id)
|
||
|
|
end
|
||
|
|
end
|