mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
12 lines
253 B
Ruby
12 lines
253 B
Ruby
|
|
# 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
|