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