From d86b61b15a8faf779cd7e7dc2c72617a99f28489 Mon Sep 17 00:00:00 2001 From: Yazeed Loonat Date: Tue, 9 Jan 2024 12:39:26 -0700 Subject: [PATCH] fix: update listing export (#3802) --- backend/core/src/listings/listings-csv-exporter.service.ts | 2 +- backend/core/src/listings/views/config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/core/src/listings/listings-csv-exporter.service.ts b/backend/core/src/listings/listings-csv-exporter.service.ts index cf6a80f4d8..1acb5bf9c7 100644 --- a/backend/core/src/listings/listings-csv-exporter.service.ts +++ b/backend/core/src/listings/listings-csv-exporter.service.ts @@ -177,7 +177,7 @@ export class ListingsCsvExporterService { "Minimum Occupancy": hideZero(listing.unit?.minOccupancy), "Max Occupancy": hideZero(listing.unit?.maxOccupancy), "AMI Chart": listing.unit?.amiChart?.name, - "AMI Level": listing.unit?.amiChart?.items[0]?.percentOfAmi, + "AMI Level": listing.unit?.amiPercentage, "Rent Type": formatRentType( listing.unit?.monthlyRentAsPercentOfIncome, listing.unit?.monthlyRent diff --git a/backend/core/src/listings/views/config.ts b/backend/core/src/listings/views/config.ts index 19e98fe048..2689402222 100644 --- a/backend/core/src/listings/views/config.ts +++ b/backend/core/src/listings/views/config.ts @@ -351,13 +351,13 @@ views.unitsExport = { "units.number", "unitType.name", "units.numBathrooms", + "units.amiPercentage", "units.floor", "units.sqFeet", "units.minOccupancy", "units.maxOccupancy", "units.monthlyIncomeMin", "amiChart.id", - "amiChart.items", "amiChart.name", "units.monthlyRent", "units.monthlyRentAsPercentOfIncome",