Rename object_id so it's not confused with Object#object_id

parent 02d865b9
...@@ -78,11 +78,11 @@ class GeoFileDownloadDispatchWorker ...@@ -78,11 +78,11 @@ class GeoFileDownloadDispatchWorker
return unless downloads_remain? return unless downloads_remain?
num_to_schedule.times do num_to_schedule.times do
object_id, object_type = @pending_downloads.shift object_db_id, object_type = @pending_downloads.shift
job_id = GeoFileDownloadWorker.perform_async(object_type, object_id) job_id = GeoFileDownloadWorker.perform_async(object_type, object_db_id)
if job_id if job_id
@scheduled_jobs << { id: object_id, type: object_type, job_id: job_id } @scheduled_jobs << { id: object_db_id, type: object_type, job_id: job_id }
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment