mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
12 lines
320 B
Ruby
12 lines
320 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Import::GoogleTakeoutJob < ApplicationJob
|
|
queue_as :imports
|
|
|
|
def perform(import_id, locations, current_index)
|
|
locations_batch = Oj.load(locations)
|
|
import = Import.find(import_id)
|
|
|
|
GoogleMaps::RecordsImporter.new(import, current_index).call(locations_batch)
|
|
end
|
|
end
|