dawarich/app/jobs/places/bulk_name_fetching_job.rb
2025-07-12 11:30:51 +02:00

11 lines
252 B
Ruby

# frozen_string_literal: true
class Places::BulkNameFetchingJob < ApplicationJob
queue_as :places
def perform
Place.where(name: Place::DEFAULT_NAME).find_each do |place|
Places::NameFetchingJob.perform_later(place.id)
end
end
end