app/models/bulkrax/exporter.rb in bulkrax-3.0.0 vs app/models/bulkrax/exporter.rb in bulkrax-3.0.1
- old
+ new
@@ -94,10 +94,11 @@
def importers_list
Importer.all.map { |i| [i.name, i.id] }
end
def current_run
- @current_run ||= self.exporter_runs.create!(total_work_entries: self.limit || parser.total)
+ total = self.limit || parser.total
+ @current_run ||= self.exporter_runs.create!(total_work_entries: total, enqueued_records: total)
end
def last_run
@last_run ||= self.exporter_runs.last
end