dawarich/app/jobs/places/bulk_name_fetching_job.rb

12 lines
253 B
Ruby
Raw Normal View History

2025-07-12 05:21:38 -04:00
# frozen_string_literal: true
class Places::BulkNameFetchingJob < ApplicationJob
queue_as :default
def perform
Place.where(name: Place::DEFAULT_NAME).find_each do |place|
Places::NameFetchingJob.perform_later(place.id)
end
end
end