From 1c3441708c9d425340c234d756621c33e172b104 Mon Sep 17 00:00:00 2001 From: Kat <54268893+kosiakkatrina@users.noreply.github.com> Date: Thu, 27 Feb 2025 14:40:13 +0000 Subject: [PATCH] Fix export --- app/services/exports/lettings_log_export_service.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/exports/lettings_log_export_service.rb b/app/services/exports/lettings_log_export_service.rb index a8877eac3..fe61cc326 100644 --- a/app/services/exports/lettings_log_export_service.rb +++ b/app/services/exports/lettings_log_export_service.rb @@ -129,7 +129,7 @@ module Exports attribute_hash["support"] = scheme.support_type_before_type_cast attribute_hash["units_scheme"] = scheme.locations.map(&:units).compact.sum attribute_hash["scheme"] = scheme.id - attribute_hash["scheme_status"] = scheme.status_at(attribute_hash["startdate"]) + attribute_hash["scheme_status"] = scheme.status_at(attribute_hash["startdate"].to_date) end def add_location_fields!(location, attribute_hash) @@ -137,7 +137,7 @@ module Exports attribute_hash["scheme_old"] = location.old_visible_id attribute_hash["units"] = location.units attribute_hash["location_code"] = location.id - attribute_hash["location_status"] = location.status_at(attribute_hash["startdate"]) + attribute_hash["location_status"] = location.status_at(attribute_hash["startdate"].to_date) end def is_omitted_field?(field_name, lettings_log)