mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
14 lines
302 B
Ruby
14 lines
302 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Import::GoogleTakeoutJob < ApplicationJob
|
|
queue_as :imports
|
|
sidekiq_options retry: false
|
|
|
|
def perform(import_id, json_string)
|
|
import = Import.find(import_id)
|
|
|
|
json = Oj.load(json_string)
|
|
|
|
GoogleMaps::RecordsParser.new(import).call(json)
|
|
end
|
|
end
|