Browse Source

feat: allow null emails

pull/2017/head
natdeanlewissoftwire 1 year ago
parent
commit
aad34a2fb0
  1. 2
      app/services/bulk_upload/lettings/year2022/row_parser.rb
  2. 2
      app/services/bulk_upload/lettings/year2023/row_parser.rb
  3. 2
      app/services/bulk_upload/sales/year2022/row_parser.rb
  4. 2
      app/services/bulk_upload/sales/year2023/row_parser.rb

2
app/services/bulk_upload/lettings/year2022/row_parser.rb

@ -513,7 +513,7 @@ private
end end
def created_by def created_by
@created_by ||= User.where("lower(email) = ?", field_112.downcase).first @created_by ||= User.where("lower(email) = ?", field_112&.downcase).first
end end
def duplicate_check_fields def duplicate_check_fields

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

@ -542,7 +542,7 @@ private
end end
def created_by def created_by
@created_by ||= User.where("lower(email) = ?", field_3.downcase).first @created_by ||= User.where("lower(email) = ?", field_3&.downcase).first
end end
def validate_uprn_exists_if_any_key_address_fields_are_blank def validate_uprn_exists_if_any_key_address_fields_are_blank

2
app/services/bulk_upload/sales/year2022/row_parser.rb

@ -934,7 +934,7 @@ private
end end
def created_by def created_by
@created_by ||= User.where("lower(email) = ?", field_93.downcase).first @created_by ||= User.where("lower(email) = ?", field_93&.downcase).first
end end
def hhregres def hhregres

2
app/services/bulk_upload/sales/year2023/row_parser.rb

@ -1112,7 +1112,7 @@ private
end end
def created_by def created_by
@created_by ||= User.where("lower(email) = ?", field_2.downcase).first @created_by ||= User.where("lower(email) = ?", field_2&.downcase).first
end end
def previous_la_known def previous_la_known

Loading…
Cancel
Save