FEATURE: Zendesk importer that uses its API to get data

This commit is contained in:
Neil Lalonde
2018-08-28 10:21:39 -04:00
parent 83bf641292
commit 15f657309a
3 changed files with 311 additions and 1 deletions

View File

@ -873,7 +873,7 @@ class ImportScripts::Base
@start_times.fetch(key) { |k| @start_times[k] = Time.now }
end
def batches(batch_size)
def batches(batch_size = 1000)
offset = 0
loop do
yield offset