mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 01:31:39 -05:00
12 lines
206 B
Ruby
12 lines
206 B
Ruby
|
|
# frozen_string_literal: true
|
||
|
|
|
||
|
|
class Places::NameFetchingJob < ApplicationJob
|
||
|
|
queue_as :places
|
||
|
|
|
||
|
|
def perform(place_id)
|
||
|
|
place = Place.find(place_id)
|
||
|
|
|
||
|
|
Places::NameFetcher.new(place).call
|
||
|
|
end
|
||
|
|
end
|