Browse Source

feat: use empty arrays

pull/2135/head
natdeanlewissoftwire 2 years ago
parent
commit
8ea65a3f55
  1. 8
      app/services/bulk_upload/lettings/year2023/row_parser.rb

8
app/services/bulk_upload/lettings/year2023/row_parser.rb

@ -893,10 +893,10 @@ private
owning_organisation_id: [:field_1], owning_organisation_id: [:field_1],
managing_organisation_id: [:field_2], managing_organisation_id: [:field_2],
renewal: [:field_6], renewal: [:field_6],
scheme_id: (scheme_field.present? ? [scheme_field] : nil), scheme_id: (scheme_field.present? ? [scheme_field] : []),
scheme: (scheme_field.present? ? [scheme_field] : nil), scheme: (scheme_field.present? ? [scheme_field] : []),
location_id: (location_field.present? ? [location_field] : nil), location_id: (location_field.present? ? [location_field] : []),
location: (location_field.present? ? [location_field] : nil), location: (location_field.present? ? [location_field] : []),
created_by: [:field_3], created_by: [:field_3],
needstype: [:field_4], needstype: [:field_4],
rent_type: %i[field_5 field_10 field_11], rent_type: %i[field_5 field_10 field_11],

Loading…
Cancel
Save