2024-05-18 07:58:02 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2024-04-06 13:09:38 -04:00
|
|
|
class Overland::BatchCreatingJob < ApplicationJob
|
|
|
|
|
queue_as :default
|
|
|
|
|
|
|
|
|
|
def perform(params)
|
|
|
|
|
data = Overland::Params.new(params).call
|
|
|
|
|
|
|
|
|
|
data.each do |location|
|
|
|
|
|
Point.create!(location)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|