mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 01:31:39 -05:00
13 lines
305 B
Ruby
13 lines
305 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Import::GoogleTakeoutJob < ApplicationJob
|
|
queue_as :imports
|
|
sidekiq_options retry: false
|
|
|
|
def perform(import_id, json_array)
|
|
import = Import.find(import_id)
|
|
records = Oj.load(json_array)
|
|
|
|
GoogleMaps::RecordsParser.new(import).call(records)
|
|
end
|
|
end
|