mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
14 lines
300 B
Ruby
14 lines
300 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ImportGoogleTakeoutJob < 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
|