Browse Source

CLDC-3224: Move where bulk upload noint fix status is set to ensure it matches processing version

pull/2251/head
Rachael Booth 2 years ago
parent
commit
827cc9561f
  1. 1
      app/models/forms/bulk_upload_sales/upload_your_file.rb
  2. 2
      app/services/bulk_upload/sales/log_creator.rb

1
app/models/forms/bulk_upload_sales/upload_your_file.rb

@ -36,7 +36,6 @@ module Forms
log_type: BulkUpload.log_types[:sales], log_type: BulkUpload.log_types[:sales],
year:, year:,
filename: file.original_filename, filename: file.original_filename,
noint_fix_status: BulkUpload.noint_fix_statuses[:not_needed],
) )
storage_service.write_file(bulk_upload.identifier, File.read(file.path)) storage_service.write_file(bulk_upload.identifier, File.read(file.path))

2
app/services/bulk_upload/sales/log_creator.rb

@ -25,7 +25,7 @@ class BulkUpload::Sales::LogCreator
Sentry.capture_exception(e) Sentry.capture_exception(e)
end end
end end
@bulk_upload.update!(used_fixed_noint: true) @bulk_upload.update!(noint_fix_status: BulkUpload.noint_fix_statuses[:not_needed])
end end
private private

Loading…
Cancel
Save