|
|
@ -43,8 +43,7 @@ module Imports |
|
|
|
# Generate background job to process file completely |
|
|
|
# Generate background job to process file completely |
|
|
|
xml_document = Nokogiri::XML(File.open(filename)) |
|
|
|
xml_document = Nokogiri::XML(File.open(filename)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LettingsLogImportJob.perform_later(@run_id, xml_document.to_s) |
|
|
|
LettingsLogImportJob.perform_now(@run_id, xml_document.to_s) |
|
|
|
|
|
|
|
#send(:create_log, xml_document) |
|
|
|
#send(:create_log, xml_document) |
|
|
|
end |
|
|
|
end |
|
|
|
rescue StandardError => e |
|
|
|
rescue StandardError => e |
|
|
|