diff --git a/src/dao/property.rs b/src/dao/property.rs index 833a1e9..5c4dc77 100644 --- a/src/dao/property.rs +++ b/src/dao/property.rs @@ -65,13 +65,17 @@ pub async fn fetch_with_realtor_id_paged( Filter::Country(country) => country_filter = Some(country), Filter::City(city) => city_filter = Some(city), Filter::District(district) => district_filter = Some(district), - Filter::PriceGreaterThan(price_greater_than) => min_price_filter = Some(price_greater_than), + Filter::PriceGreaterThan(price_greater_than) => { + min_price_filter = Some(price_greater_than) + } Filter::PriceLessThan(price_less_than) => max_price_filter = Some(price_less_than), Filter::Rooms(room_count) => room_count_filter = Some(room_count), Filter::Bathrooms(bathroom_count) => bathroom_count_filter = Some(bathroom_count), Filter::PropertyType(property_type) => property_type_filter = Some(property_type), Filter::MinArea(min_area) => min_area_filter = Some(min_area), - Filter::ParkingSpots(parking_spots_count) => parking_spots_count_filter = Some(parking_spots_count), + Filter::ParkingSpots(parking_spots_count) => { + parking_spots_count_filter = Some(parking_spots_count) + } Filter::Arrangement(arrangement) => arrangement_filter = Some(arrangement), } }