dawarich/app/jobs/reverse_geocoding_job.rb

12 lines
235 B
Ruby
Raw Normal View History

2024-04-26 12:59:58 -04:00
# frozen_string_literal: true
2024-03-15 18:27:31 -04:00
class ReverseGeocodingJob < ApplicationJob
2024-04-26 12:59:58 -04:00
queue_as :reverse_geocoding
2024-03-15 18:27:31 -04:00
def perform(point_id)
return unless REVERSE_GEOCODING_ENABLED
2024-07-12 15:59:03 -04:00
ReverseGeocoding::FetchData.new(point_id).call
2024-03-15 18:27:31 -04:00
end
end