Browse Source

add illness to bulk upload

remotes/origin/bulk-upload-errors-integration
Phil Lee 3 years ago
parent
commit
00aaf670b0
  1. 4
      app/services/bulk_upload/lettings/row_parser.rb
  2. 2
      spec/services/bulk_upload/lettings/row_parser_spec.rb

4
app/services/bulk_upload/lettings/row_parser.rb

@ -263,6 +263,8 @@ private
preg_occ: %i[field_47], preg_occ: %i[field_47],
housingneeds: %i[field_47], housingneeds: %i[field_47],
illness: %i[field_118],
} }
end end
@ -368,6 +370,8 @@ private
attributes["housingneeds"] = housingneeds attributes["housingneeds"] = housingneeds
attributes["illness"] = field_118
attributes attributes
end end

2
spec/services/bulk_upload/lettings/row_parser_spec.rb

@ -91,6 +91,8 @@ RSpec.describe BulkUpload::Lettings::RowParser do
field_46: "1", field_46: "1",
field_47: "1", field_47: "1",
field_118: "2",
} }
end end

Loading…
Cancel
Save