dawarich/app/jobs/places/bulk_name_fetching_job.rb

12 lines
252 B
Ruby
Raw Permalink Normal View History

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