diff --git a/server/StrDss.Data/Repositories/RentalListingRepository.cs b/server/StrDss.Data/Repositories/RentalListingRepository.cs index 18ea6814..e014837c 100644 --- a/server/StrDss.Data/Repositories/RentalListingRepository.cs +++ b/server/StrDss.Data/Repositories/RentalListingRepository.cs @@ -101,18 +101,17 @@ public async Task> GetGroupedRentalListings(stri ApplyFilters(all, address, url, listingId, hostName, businessLicence, prRequirement, blRequirement, lgId, statusArray, reassigned, takedownComplete, ref query); var groupedQuery = query - .GroupBy(x => new { x.EffectiveBusinessLicenceNo, x.EffectiveHostNm, x.MatchAddressTxt }) - .Select(g => new RentalListingGroupDto + .Select(x => new RentalListingGroupDto { - EffectiveBusinessLicenceNo = g.Key.EffectiveBusinessLicenceNo, - EffectiveHostNm = g.Key.EffectiveHostNm, - MatchAddressTxt = g.Key.MatchAddressTxt + EffectiveBusinessLicenceNo = x.EffectiveBusinessLicenceNo, + EffectiveHostNm = x.EffectiveHostNm, + MatchAddressTxt = x.MatchAddressTxt }) + .Distinct() .AsNoTracking(); var extraSort = ""; - var groupedListings = await Page(groupedQuery, pageSize, pageNumber, orderBy, direction, extraSort, false); diff --git a/server/StrDss.Model/OrganizationDtos/JurisdictionUpdateDto.cs b/server/StrDss.Model/OrganizationDtos/JurisdictionUpdateDto.cs index 45750cba..94298ae6 100644 --- a/server/StrDss.Model/OrganizationDtos/JurisdictionUpdateDto.cs +++ b/server/StrDss.Model/OrganizationDtos/JurisdictionUpdateDto.cs @@ -9,6 +9,7 @@ public class JurisdictionUpdateDto public bool? IsBusinessLicenceRequired { get; set; } public string? EconomicRegionDsc { get; set; } public bool? IsStraaExempt { get; set; } + public bool? IsActive { get; set; } public DateTime UpdDtm { get; set; } } }